Пример #1
0
 /* Checking if sensor device connect or not */
 private bool DisplayDeviceConnection(bool state)
 {
     if (state)
     {
         if (!_disconnected)
         {
             _form.UpdateStatus("Device Disconnected");
         }
         _disconnected = true;
     }
     else
     {
         if (_disconnected)
         {
             _form.UpdateStatus("Device Reconnected");
         }
         _disconnected = false;
     }
     return(_disconnected);
 }