예제 #1
0
 /// <summary>
 /// Остановить мониторинг устройств
 /// </summary>
 public void StopDeviceMonitoring()
 {
     Console.WriteLine("StopDeviceMonitoring");
     DeviceChangeNotifier.LogReceived -= OnDeviceChangeNotifierLogReceived;
     DeviceChangeNotifier.Stop();
     DeviceMonitoringState = MonitoringState.Stopped;
 }
예제 #2
0
 protected override void SetVisibleCore(bool value)
 {
     // Prevent window getting visible
     if (mInstance == null)
     {
         CreateHandle();
     }
     mInstance = this;
     value     = false;
     base.SetVisibleCore(value);
 }