public override void CloseDevice() { if (Profile.deviceIsInitialized(IDT_DEVICE_Types.IDT_DEVICE_AUGUSTA, DEVICE_INTERFACE_Types.DEVICE_INTERFACE_USB)) { Profile.closeDevice(IDT_DEVICE_Types.IDT_DEVICE_AUGUSTA, DEVICE_INTERFACE_Types.DEVICE_INTERFACE_USB); } //if (Profile.deviceIsInitialized(IDT_DEVICE_Types.IDT_DEVICE_AUGUSTA_KB, DEVICE_INTERFACE_Types.DEVICE_INTERFACE_USB)) //{ // Profile.closeDevice(IDT_DEVICE_Types.IDT_DEVICE_AUGUSTA_KB, DEVICE_INTERFACE_Types.DEVICE_INTERFACE_USB); //} IDT_Device.stopUSBMonitoring(); }
/********************************************************************************************************/ // DEVICE EVENTS INTERFACE /********************************************************************************************************/ #region -- device event interface --- private void DeviceRemovedHandler() { Debug.WriteLine("\ndevice: removed !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"); connected = false; if (attached) { attached = false; // Last device was USDK Type if (useUniversalSDK) { IDT_Device.stopUSBMonitoring(); } // Unload Device Domain NotificationRaise(new DeviceNotificationEventArgs { NotificationType = NOTIFICATION_TYPE.NT_UNLOAD_DEVICE_CONFIGDOMAIN }); } }