Exemple #1
0
 private void ComServiceConnectionStateChanged(object sender, ConnectionState e)
 {
     if (e == ConnectionState.Online)
     {
         if (!_processing)
         {
             ProcessQueue();
         }
         SystemCommands.StartProcessing();
         ManualCommands.StartProcessing();
         MacroCommands.StartProcessing();
     }
     else
     {
         _stopSubject.OnNext(Unit.Default);
         _processing = false;
         SystemCommands.PauseProcessing();
         ManualCommands.PauseProcessing();
         MacroCommands.PauseProcessing();
     }
 }