Class RootProjectService
Root(Local) project service. Apply absolute file path.
public class RootProjectService : IPathedMachiningProjectHost, IMachiningProjectHost
- Inheritance
-
RootProjectService
- Implements
- Inherited Members
- Extension Methods
Constructors
RootProjectService(ILogger<RootProjectService>)
public RootProjectService(ILogger<RootProjectService> logger)
Parameters
logger
ILogger<RootProjectService>
Properties
Logger
public ILogger<RootProjectService> Logger { get; }
Property Value
MachiningProject
public MachiningProject MachiningProject { get; set; }
Property Value
MachiningProjectPath
public string MachiningProjectPath { get; set; }
Property Value
ProjectDirectory
public string ProjectDirectory { get; }
Property Value
Methods
CloseProject()
Closes the current project.
public Task CloseProject()
Returns
- Task
A task representing the asynchronous operation
LoadProject(string)
Loads a project by file path relative to the admin directory.
public Task LoadProject(string projectPath)
Parameters
projectPath
stringThe absolute file path
Returns
- Task
A task representing the asynchronous operation
NewProject(string)
Creates a new project by file path.
public void NewProject(string projectPath)
Parameters
projectPath
stringThe absolute file path
ReloadProject()
Reloads the current project.
public Task ReloadProject()
Returns
- Task
A task representing the asynchronous operation
SaveAsProject(string)
Saves the current project to a specified relative file path.
public void SaveAsProject(string projectPath)
Parameters
projectPath
stringThe absolute file path
SaveProject()
Save project by ProjectPathRoute.
public void SaveProject()
Events
MachiningProjectChanged
public event RootProjectService.MachiningProjectChangedDelegate MachiningProjectChanged