public CustomApplicationContext() { this.InitializeContext(); _usbDetector = new UsbDetector(); _usbDetector.DeviceAttached += new DriveDetectorEventHandler(OnIPhoneAttached); }
public UsbContext() { this.InitializeContext(); this.usbDetector = new UsbDetector(); this.usbDetector.OnDeviceAttached += this.OnUsbOnDeviceAttached; this.usbDetector.OnDeviceRemoved += this.OnUsbOnDeviceRemoved; }
public UsbDetectorForm(UsbDetector detector) { this._detector = detector; MinimizeBox = false; MaximizeBox = false; ShowInTaskbar = false; ShowIcon = false; FormBorderStyle = FormBorderStyle.None; Load += Load_Form; Activated += Form_Activated; }