Example #1
0
        /// <summary>
        /// Stop scanning for devices.
        /// </summary>
        public void StopScanning()
        {
            if (!masterEmulator.IsDeviceDiscoveryOngoing)
            {
                return;
            }

            bool success = masterEmulator.StopDeviceDiscovery();

            if (success)
            {
                ScanningCanceled(this, EventArgs.Empty);
            }
        }
Example #2
0
        void StopScan()
        {
            if (!masterEmulator.IsDeviceDiscoveryOngoing)
            {
                return;
            }

            bool success = masterEmulator.StopDeviceDiscovery();

            if (!success)
            {
                log.Add(new StringValue(AppText.StopScanError));
            }
        }