private void Stoper(object sender, EventArgs e)
 {
     if (_hrEnumerator != null)
     {
         _hrEnumerator.DeviceScanUpdate  -= _hrEnumerator_DeviceScanUpdate;
         _hrEnumerator.DeviceScanTimeout -= _hrEnumerator_DeviceScanTimeout;
         _hrEnumerator.StopDeviceScan();
         _hrEnumerator = null;
         Toast.MakeText(this, "Сканирование завершено", ToastLength.Short).Show();
     }
 }
Beispiel #2
0
 void OnButtonChartClicked(object sender, EventArgs e)
 {
     if (_hrEnumerator != null)
     {
         HideProgressBar();
         _hrEnumerator.DeviceScanUpdate  -= _hrEnumerator_DeviceScanUpdate;
         _hrEnumerator.DeviceScanTimeout -= _hrEnumerator_DeviceScanTimeout;
         _hrEnumerator.StopDeviceScan();
         _hrEnumerator = null;
         listAdapter.Add($"> ble stop");
     }
 }
Beispiel #3
0
 private void Button_stop_scan_Click(object sender, EventArgs e)
 {
     _progressWorking.Visibility = ViewStates.Invisible;
     if (_hrEnumerator != null)
     {
         _hrEnumerator.DeviceScanUpdate  -= _hrEnumerator_DeviceScanUpdate;
         _hrEnumerator.DeviceScanTimeout -= _hrEnumerator_DeviceScanTimeout;
         _hrEnumerator.StopDeviceScan();
         _hrEnumerator = null;
         listAdapter.Add($"> ble stop");
     }
 }