Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();

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

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