コード例 #1
0
        private void OnWin32UsbControllerDevicesDeviceModified(object sender, Win32UsbControllerDeviceEventArgs e)
        {
            this.DeviceEvents.Insert(0, new DeviceEvent(2, e.Device));

            this.RefreshOnWmiEvent(e.Device);
        }
コード例 #2
0
        private void OnWin32UsbControllerDevicesDeviceDisconnected(Object sender, Win32UsbControllerDeviceEventArgs e)
        {
            this.DeviceEvents.Insert(0, new DeviceEvent(1, e.Device));

            this.RefreshOnWmiEvent(e.Device);
        }