private void DoDiscovery() { this.Title = "Bluetooth"; this.selectedDevice = BTSelect.ShowBox(this, true); if (this.selectedDevice != null) { this.Title = this.selectedDevice.Name; } }
private void btnUnpair_Click(object sender, RoutedEventArgs e) { BTDeviceInfo device = BTSelect.ShowBox(this, true); if (device != null) { var result = MsgBoxYesNo.ShowBox( this, DI.Wrapper.GetText(LanguageFactory.Net.data.MsgCode.Unpair), device.Name); if (result == MsgBoxYesNo.MsgBoxResult.Yes) { this.gridWait.Show(); DI.Wrapper.BT_UnPairStatus -= this.unPairStatusHandler; DI.Wrapper.BT_UnPairStatus += this.unPairStatusHandler; DI.Wrapper.BTClassicUnPairAsync(device); } } }