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

            if (deviceDisp != null)
            {
                ListenButton.IsEnabled = true;
            }
            else
            {
                ListenButton.IsEnabled = false;
            }
        }