예제 #1
0
 /// <summary>
 /// Raises the <see cref="DeviceDisconnected"/> event.
 /// </summary>
 /// <param name="e">The <see cref="DeviceDataEventArgs"/> instance containing the event data.</param>
 protected void OnDeviceDisconnected(DeviceDataEventArgs e)
 {
     if (this.DeviceDisconnected != null)
     {
         this.DeviceDisconnected(this, e);
     }
 }
예제 #2
0
        private void OnDeviceDisconnected(object sender, DeviceDataEventArgs args)
        {
            var dev = args.Device;

            Debug.WriteLine($"Device disconnected {dev.Name}[{dev.Model}/{dev.Serial}]");
            DeviceDisconnected?.Invoke(this, args);
        }
예제 #3
0
        private void OnDeviceConnected(object sender, DeviceDataEventArgs args)
        {
            var dev = args.Device;

            CacheDeviceList();
            Debug.WriteLine($"Device connected {dev.Name}[{dev.Model}/{dev.Serial}]");
            DeviceConnected?.Invoke(this, args);
            //EchoTest(args.Device.Serial);
        }
예제 #4
0
파일: DeviceMonitor.cs 프로젝트: vebin/madb
 /// <summary>
 /// Raises the <see cref="DeviceDisconnected"/> event.
 /// </summary>
 /// <param name="e">The <see cref="DeviceDataEventArgs"/> instance containing the event data.</param>
 protected void OnDeviceDisconnected(DeviceDataEventArgs e)
 {
     if (this.DeviceDisconnected != null)
     {
         this.DeviceDisconnected(this, e);
     }
 }