public BluetoothServer(int dOrder, RfcommDeviceDisplay dinfo, MainWindow main) { deviceOrder = dOrder; deviceInfo = dinfo; deviceName = dinfo.Name; deviceId = dinfo.Id.Split('-')[1].Replace(":", ""); mMain = main; }
public async void Player_Connect(RfcommDeviceDisplay device) { await Dispatcher.BeginInvoke( new Action(() => { PairingCollection.Add(device); } )); }
/// <summary> ListenButtonの使用可不可の更新 </summary> private void UpdatePairingButtons() { RfcommDeviceDisplay deviceDisp = (RfcommDeviceDisplay)ResultsListView.SelectedItem; if (deviceDisp != null) { ListenButton.IsEnabled = true; } else { ListenButton.IsEnabled = false; } }