示例#1
0
        private void OnConnectDevice(object sender, RoutedEventArgs e)
        {
            BLEScanContentDialog.Hide();
            StopBleDeviceWatcher();
            var bluetoothDevice = (sender as Button).DataContext as BluetoothLEDeviceDisplay;

            Frame.Navigate(typeof(BLEnode), bluetoothDevice.Id);
        }
示例#2
0
 private void OnCancelSearchNodes(object sender, RoutedEventArgs e)
 {
     BLEScanContentDialog.Hide();
     StopBleDeviceWatcher();
 }
示例#3
0
 private async void OnSearchNodes(object sender, RoutedEventArgs e)
 {
     StartBleDeviceWatcher();
     ScanBLEstackPanel.Visibility = Visibility.Visible;
     await BLEScanContentDialog.ShowAsync();
 }