public void Run()
 {
     Started.Set();
     EventStarted?.Invoke(this);
     Finished.Set();
     ContiniousBlockCompleted.Set();
     EventFinished?.Invoke(this);
 }
Exemplo n.º 2
0
 private void OnSpaceReceived(int nid)
 {
     if (nid != CommandId)
     {
         return;
     }
     ContiniousBlockCompleted.Set();
 }
Exemplo n.º 3
0
 public void Run()
 {
     Started.Set();
     EventStarted?.Invoke(this);
     if (manager != null)
     {
         manager.SyncCoordinates(globalPosition);
     }
     Finished.Set();
     ContiniousBlockCompleted.Set();
     EventFinished?.Invoke(this);
 }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }