示例#1
0
        private void TryConnectToLaunch()
        {
            _launchDevice = null;
            if (_launchBluetooth != null)
            {
                _launchBluetooth.Stop();
            }

            _launchBluetooth                = new LaunchBluetooth();
            _launchBluetooth.DeviceFound   += LaunchBluetoothOnDeviceFound;
            _launchBluetooth.DeviceRemoved += LaunchBluetoothOnDeviceRemoved;
            _launchBluetooth.Disconnected  += LaunchBluetoothOnDisconnected;
            _launchBluetooth.Start();
        }
示例#2
0
 private void InitializeLaunchFinder()
 {
     _launchConnect              = new LaunchBluetooth();
     _launchConnect.DeviceFound += LaunchConnectOnDeviceFound;
 }