Table of Contents

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 AppService

The application service.

logger ILogger<LocalProjectService>

The logger instance.

Properties

AppService

Gets the application service instance.

public AppService AppService { get; }

Property Value

AppService

Logger

Gets the logger instance for this service.

public ILogger<LocalProjectService> Logger { get; }

Property Value

ILogger<LocalProjectService>

MachiningProject

Gets or sets the machining project instance.

public MachiningProject MachiningProject { get; set; }

Property Value

MachiningProject

MachiningProjectPath

Gets or sets the path to the machining project file.

public string MachiningProjectPath { get; set; }

Property Value

string

ProjectDirectory

Gets the directory containing the machining project.

public string ProjectDirectory { get; }

Property Value

string

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 string

The 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 string

The 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 string

The 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

EventHandler

ClStrip_DispBeginChanged

Event raised when the display begin position changes for ClStrip.

public event EventHandler ClStrip_DispBeginChanged

Event Type

EventHandler

ClStrip_DispEndChanged

Event raised when the display end position changes for ClStrip.

public event EventHandler ClStrip_DispEndChanged

Event Type

EventHandler

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

Action<MachiningStep>

ClStrip_PosAdded

Event raised when a new position is added to the strip for ClStrip.

public event Action<ClStripPos> ClStrip_PosAdded

Event Type

Action<ClStripPos>

ClStrip_PosEntered

Event raised when the mouse enters a position for ClStrip.

public event EventHandler<ClStripPos> ClStrip_PosEntered

Event Type

EventHandler<ClStripPos>

ClStrip_PosSelected

Event raised when a position is selected for ClStrip.

public event EventHandler<ClStripPos> ClStrip_PosSelected

Event Type

EventHandler<ClStripPos>

MachiningProjectChanged

Event raised when the machining project changes.

public event LocalProjectService.MachiningProjectChangedDelegate MachiningProjectChanged

Event Type

LocalProjectService.MachiningProjectChangedDelegate

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

MachiningActRunner.MachiningStepBuiltDelegate

PacePlayer_IsFinishedChangedEvent

Event triggered when the finished state changes.

public event Action<bool> PacePlayer_IsFinishedChangedEvent

Event Type

Action<bool>

PacePlayer_IsLockedChangedEvent

Event triggered when the lock state changes.

public event Action<bool> PacePlayer_IsLockedChangedEvent

Event Type

Action<bool>

PacePlayer_IsRunningChangedEvent

Event triggered when the running state changes.

public event Action<bool> PacePlayer_IsRunningChangedEvent

Event Type

Action<bool>

PacePlayer_ResetedEvent

Event triggered after the player has been reset.

public event Action PacePlayer_ResetedEvent

Event Type

Action

SessionMessageHost_CollectionCleared

Event raised when the collection is cleared.

public event Action SessionMessageHost_CollectionCleared

Event Type

Action

SessionMessageHost_CollectionItemAdded

Event raised when a new milling message is added to the collection.

public event Action<SessionMessagePack> SessionMessageHost_CollectionItemAdded

Event Type

Action<SessionMessagePack>

SessionMessageHost_CollectionItemChanged

Event raised when a collection item is changed.

public event Action SessionMessageHost_CollectionItemChanged

Event Type

Action