コード例 #1
0
 protected virtual void OnConnectionClosed(BluetoothConnectionEventArgs e)
 {
     if (ConnectionClosed == null)
     {
         return;
     }
     ConnectionClosed(this, e);
 }
コード例 #2
0
        private void OnConnectionClosed(object sender, BluetoothConnectionEventArgs e)
        {
            BluetoothAddress address = new BluetoothAddress(e.BluetoothConnection.Service.Device.Address);
            ReportDevice     device;

            if (lookupDevice.TryGetValue(address, out device))
            {
                device.Disconnect();
            }
        }
コード例 #3
0
 private void OnConnectionClosed(object sender, BluetoothConnectionEventArgs e)
 {
     BluetoothAddress address = new BluetoothAddress(e.BluetoothConnection.Service.Device.Address);
     ReportDevice device;
     if (lookupDevice.TryGetValue(address, out device))
     {
         device.Disconnect();
     }
 }
コード例 #4
0
 protected virtual void OnConnectionOpened(BluetoothConnectionEventArgs e)
 {
     if (ConnectionOpened == null)
         return;
     ConnectionOpened(this, e);
 }