private void OnWin32UsbControllerDevicesDeviceModified(object sender, Win32UsbControllerDeviceEventArgs e) { this.DeviceEvents.Insert(0, new DeviceEvent(2, e.Device)); this.RefreshOnWmiEvent(e.Device); }
private void OnWin32UsbControllerDevicesDeviceDisconnected(Object sender, Win32UsbControllerDeviceEventArgs e) { this.DeviceEvents.Insert(0, new DeviceEvent(1, e.Device)); this.RefreshOnWmiEvent(e.Device); }