/// <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); } }
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); }
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); }