Esempio n. 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;
 }
Esempio n. 2
0
 public async void Player_Connect(RfcommDeviceDisplay device)
 {
     await Dispatcher.BeginInvoke(
         new Action(() =>
     {
         PairingCollection.Add(device);
     }
                    ));
 }
Esempio n. 3
0
        /// <summary> ListenButtonの使用可不可の更新 </summary>
        private void UpdatePairingButtons()
        {
            RfcommDeviceDisplay deviceDisp = (RfcommDeviceDisplay)ResultsListView.SelectedItem;

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