Exemplo n.º 1
0
        private async void buttonCancel_Click(object sender, RoutedEventArgs e)
        {
            if (
                MessageBox.Show(Application.Current.MainWindow, "Would you like to cancel the scan that's in progress?",
                                Utils.ProductName, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
            {
                AbortScanThread();

                await _mainTaskScan;

                _scanBase.MoveFirst();
            }
        }
 private void buttonCancel_Click(object sender, RoutedEventArgs e)
 {
     _scanWiz.MoveFirst();
 }