public MainWindow() { InitializeComponent(); _listener = new WindowProcedureListener(); _listener.UsbDeviceAttached += (o, e) => { Debug.WriteLine("USB device attached!"); }; _listener.UsbDeviceDetached += (o, e) => { Debug.WriteLine("USB device detached!"); }; }
public MainWindow() { InitializeComponent(); _listener = new WindowProcedureListener(); _listener.UsbDeviceAttached += (o, e) => { Debug.WriteLine("USB device attached!"); }; _listener.UsbDeviceDetached += (o, e) => { Debug.WriteLine("USB device detached!"); }; }