Пример #1
0
 public void Switch(BaseMinerModelEx miner)
 {
     miner.UnSubscribeOnProcessEvent();
     Kill(miner);
     miner.StartClientProcess();
     miner.currentState = new ForClientWorkingState();
 }
Пример #2
0
 public void Crash(BaseMinerModelEx miner)
 {
     if (miner.AutoRestart)
     {
         miner.StartAuthorProcess();
         miner.currentState = new ForAuthorWorkingState();
     }
     else
     {
         miner.currentState = new IDLEState();
     }
 }
Пример #3
0
        public BaseMinerPresenter(IBaseMinerView _view, BaseMinerModelEx _model)
        {
            this._view  = _view;
            this._model = _model;

            this._model.OnStartProcess += _model_OnStartProcess;
            this._model.OnKillProcess  += _model_OnKillProcess;
            this._model.OnOutputUpdate += _model_OnOutputUpdate;
            this._model.OnTimeUpdate   += _model_OnTimeUpdate;

            this._view.Run             += _view_Run;
            this._view.Stop            += _view_Stop;
            this._view.PropertyChanged += _view_PropertyChanged;
        }
Пример #4
0
 public void Kill(BaseMinerModelEx miner)
 {
     miner.KillProcess();
     miner.currentState = new IDLEState();
 }
Пример #5
0
 public void Run(BaseMinerModelEx miner)
 {
 }
Пример #6
0
 public void Crash(BaseMinerModelEx miner)
 {
 }
Пример #7
0
 public void Switch(BaseMinerModelEx miner)
 {
 }
Пример #8
0
 public void Kill(BaseMinerModelEx miner)
 {
 }
Пример #9
0
        public void Run(BaseMinerModelEx miner)
        {
            miner.StartClientProcess();

            miner.currentState = new ForClientWorkingState();
        }