Class LocalProjectService
- Namespace
- Hi.MachiningProcs
- Assembly
- HiNc.dll
Root(Local) project service. Apply absolute file path.
public class LocalProjectService : IProjectService, IMachiningProjectGetter
- Inheritance
-
LocalProjectService
- Implements
- Inherited Members
- Extension Methods
Constructors
LocalProjectService()
Ctor.
public LocalProjectService()
LocalProjectService(AppService, ILogger<LocalProjectService>)
Initializes a new instance of the LocalProjectService class.
public LocalProjectService(AppService appService, ILogger<LocalProjectService> logger)
Parameters
appService
AppServiceThe application service.
logger
ILogger<LocalProjectService>The logger instance.
Properties
AppService
Gets the application service instance.
public AppService AppService { get; }
Property Value
Logger
Gets the logger instance for this service.
public ILogger<LocalProjectService> Logger { get; }
Property Value
MachiningProject
Gets or sets the machining project instance.
public MachiningProject MachiningProject { get; set; }
Property Value
MachiningProjectPath
Gets or sets the path to the machining project file.
public string MachiningProjectPath { get; set; }
Property Value
ProjectDirectory
Gets the directory containing the machining project.
public string ProjectDirectory { get; }
Property Value
Methods
CloseProject()
Closes the current project.
public Task CloseProject()
Returns
- Task
A task representing the asynchronous operation
GetMachiningProject()
Gets the MachiningProject instance.
public MachiningProject GetMachiningProject()
Returns
- MachiningProject
The MachiningProject instance.
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 project path.
public void SaveProject()
Events
ClStrip_AbsDispEndChanged
Event raised when the absolute display end position changes for ClStrip.
public event EventHandler ClStrip_AbsDispEndChanged
Event Type
ClStrip_DispBeginChanged
Event raised when the display begin position changes for ClStrip.
public event EventHandler ClStrip_DispBeginChanged
Event Type
ClStrip_DispEndChanged
Event raised when the display end position changes for ClStrip.
public event EventHandler ClStrip_DispEndChanged
Event Type
ClStrip_MachiningStepSelected
The same effecting position as ClStrip_PosSelected but with more convenient arguments for the end-user for ClStrip.
public event Action<MachiningStep> ClStrip_MachiningStepSelected
Event Type
ClStrip_PosAdded
Event raised when a new position is added to the strip for ClStrip.
public event Action<ClStripPos> ClStrip_PosAdded
Event Type
ClStrip_PosEntered
Event raised when the mouse enters a position for ClStrip.
public event EventHandler<ClStripPos> ClStrip_PosEntered
Event Type
ClStrip_PosSelected
Event raised when a position is selected for ClStrip.
public event EventHandler<ClStripPos> ClStrip_PosSelected
Event Type
MachiningProjectChanged
Event raised when the machining project changes.
public event LocalProjectService.MachiningProjectChangedDelegate MachiningProjectChanged
Event Type
MachiningStepBuilt
event to configure steps. The first parameter is the previous step; the second parameter is the current step. The previous step is null if no previous step exists.
public event MachiningActRunner.MachiningStepBuiltDelegate MachiningStepBuilt
Event Type
PacePlayer_IsFinishedChangedEvent
Event triggered when the finished state changes.
public event Action<bool> PacePlayer_IsFinishedChangedEvent
Event Type
PacePlayer_IsLockedChangedEvent
Event triggered when the lock state changes.
public event Action<bool> PacePlayer_IsLockedChangedEvent
Event Type
PacePlayer_IsRunningChangedEvent
Event triggered when the running state changes.
public event Action<bool> PacePlayer_IsRunningChangedEvent
Event Type
PacePlayer_ResetedEvent
Event triggered after the player has been reset.
public event Action PacePlayer_ResetedEvent
Event Type
SessionMessageHost_CollectionCleared
Event raised when the collection is cleared.
public event Action SessionMessageHost_CollectionCleared
Event Type
SessionMessageHost_CollectionItemAdded
Event raised when a new milling message is added to the collection.
public event Action<SessionMessagePack> SessionMessageHost_CollectionItemAdded
Event Type
SessionMessageHost_CollectionItemChanged
Event raised when a collection item is changed.
public event Action SessionMessageHost_CollectionItemChanged