Table of Contents

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

projectSettings ProjectSettings
appSettings AppSettings
globalState GlobalState
interpolation Interpolation
localizationService LocalizationService

Methods

CopyDir(string, string)

Cipies all project files into new directory

public void CopyDir(string oldDir, string newDir)

Parameters

oldDir string
newDir string

CopyRes(string, string, Project?)

public string CopyRes(string resName, string filePath, Project? project)

Parameters

resName string
filePath string
project Project

Returns

string

DeleteResource(string, string, Project?)

public bool DeleteResource(string name, string ext, Project? project)

Parameters

name string
ext string
project Project

Returns

bool

GetProjectDir(Project?)

Return real project directory in file system

public string GetProjectDir(Project? project)

Parameters

project Project

Project

Returns

string

LoadRes(Project)

Load all resources into project

public void LoadRes(Project project)

Parameters

project Project

MoveRes(Project)

Sets new pathes to project resource objects after moving project into another directory

public void MoveRes(Project project)

Parameters

project Project

NewProject(string?, string?)

public Project? NewProject(string? projectName, string? projectPath)

Parameters

projectName string
projectPath string

Returns

Project

OpenProject(string?)

public Project? OpenProject(string? path)

Parameters

path string

Returns

Project

OpenProjectDialog(Window)

Open dialog for open existing projects

public Task<string?> OpenProjectDialog(Window window)

Parameters

window Window

Width of main canvas

Returns

Task<string>

RenameFile(string, string)

public void RenameFile(string oldFile, string newFile)

Parameters

oldFile string
newFile string

RenameProject(string, string)

public void RenameProject(string oldDir, string newDir)

Parameters

oldDir string
newDir string