Exemplo n.º 1
0
 private void OnConnectionStatusChanged(BluetoothLEDevice sender, object args)
 {
     if (sender.ConnectionStatus == BluetoothConnectionStatus.Disconnected)
     {
         Disconnect();
         DeviceRemovedEvent?.Invoke(this, sender.DeviceId);
     }
 }
Exemplo n.º 2
0
 public void RaiseDeviceRemovedEvent(IChannel channel)
 {
     Services.DispatcherServices.Invoke(() => DeviceRemovedEvent?.Invoke(this, channel));
 }