Class ProjectFilesManager
- Namespace
- PlumJsonAnimator.Services
- Assembly
- PlumJsonAnimator.dll
Provides methods for work with project files
public class ProjectFilesManager
- Inheritance
-
ProjectFilesManager
- Inherited Members
Constructors
ProjectFilesManager(ProjectSettings, AppSettings, GlobalState, Interpolation, LocalizationService)
public ProjectFilesManager(ProjectSettings projectSettings, AppSettings appSettings, GlobalState globalState, Interpolation interpolation, LocalizationService localizationService)
Parameters
projectSettingsProjectSettingsappSettingsAppSettingsglobalStateGlobalStateinterpolationInterpolationlocalizationServiceLocalizationService
Methods
CopyDir(string, string)
Cipies all project files into new directory
public void CopyDir(string oldDir, string newDir)
Parameters
CopyRes(string, string, Project?)
public string CopyRes(string resName, string filePath, Project? project)
Parameters
Returns
DeleteResource(string, string, Project?)
public bool DeleteResource(string name, string ext, Project? project)
Parameters
Returns
GetProjectDir(Project?)
Return real project directory in file system
public string GetProjectDir(Project? project)
Parameters
projectProjectProject
Returns
LoadRes(Project)
Load all resources into project
public void LoadRes(Project project)
Parameters
projectProject
MoveRes(Project)
Sets new pathes to project resource objects after moving project into another directory
public void MoveRes(Project project)
Parameters
projectProject
NewProject(string?, string?)
public Project? NewProject(string? projectName, string? projectPath)
Parameters
Returns
OpenProject(string?)
public Project? OpenProject(string? path)
Parameters
pathstring
Returns
OpenProjectDialog(Window)
Open dialog for open existing projects
public Task<string?> OpenProjectDialog(Window window)
Parameters
windowWindowWidth of main canvas
Returns
RenameFile(string, string)
public void RenameFile(string oldFile, string newFile)
Parameters
RenameProject(string, string)
public void RenameProject(string oldDir, string newDir)