添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using MainShell.ProcessResult;
|
||||
using System;
|
||||
|
||||
namespace MainShell.Process
|
||||
{
|
||||
public class CurrentChipStateService
|
||||
{
|
||||
private readonly ProcessResultManager _processResultManager;
|
||||
private CurrentChipLifecycleState _currentState;
|
||||
|
||||
public CurrentChipStateService(ProcessResultManager processResultManager)
|
||||
{
|
||||
_processResultManager = processResultManager ?? throw new ArgumentNullException(nameof(processResultManager));
|
||||
_currentState = _processResultManager.CurrentChipState.State;
|
||||
}
|
||||
|
||||
public CurrentChipLifecycleState CurrentState
|
||||
{
|
||||
get { return _currentState; }
|
||||
}
|
||||
|
||||
public void SetState(CurrentChipLifecycleState chipState)
|
||||
{
|
||||
_currentState = chipState;
|
||||
_processResultManager.SaveCurrentChipState(chipState);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user