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