public void Run()
 {
     Started.Set();
     EventStarted?.Invoke(this);
     Finished.Set();
     ContiniousBlockCompleted.Set();
     EventFinished?.Invoke(this);
 }
Exemple #2
0
 private void OnSpaceReceived(int nid)
 {
     if (nid != CommandId)
     {
         return;
     }
     ContiniousBlockCompleted.Set();
 }
Exemple #3
0
 public void Run()
 {
     Started.Set();
     EventStarted?.Invoke(this);
     if (manager != null)
     {
         manager.SyncCoordinates(globalPosition);
     }
     Finished.Set();
     ContiniousBlockCompleted.Set();
     EventFinished?.Invoke(this);
 }
Exemple #4
0
 private void OnDroppedHdl(int nid)
 {
     if (nid != CommandId)
     {
         return;
     }
     Logger.Instance.Debug(this, "dropped", nid.ToString());
     ContiniousBlockCompleted.Set();
     Started.Set();
     Finished.Set();
     EventFinished?.Invoke(this);
 }
Exemple #5
0
 public void Run()
 {
     Started.Set();
     EventStarted?.Invoke(this);
     foreach (var reg in toolCommand.Registers)
     {
         sender.WriteRegister(reg.DeviceId, reg.RegisterId, reg.RegisterValue);
     }
     if (toolCommand.Delay > 0)
     {
         Thread.Sleep(toolCommand.Delay);
     }
     Finished.Set();
     ContiniousBlockCompleted.Set();
     EventFinished?.Invoke(this);
 }