Beispiel #1
0
        private void DeviceDisconnect_OnClick(object sender, RoutedEventArgs e)
        {
            var tb = (Button)e.OriginalSource;
            var vm = (MainViewModel)tb.DataContext;

            var mac = PhysicalAddress.Parse(vm.SelectedDevice.DeviceAddress);

            BluetoothHelper.DisconnectRemoteDevice(mac);
        }