Exemplo n.º 1
0
        private void buttonScan_Click(object sender, RoutedEventArgs e)
        {
            UpdateOptions();

            ScanBase.SelectedDrives.Clear();

            foreach (var lvi in Wizard.DiskDrives.Where(lvi => lvi.Checked.GetValueOrDefault()))
            {
                ScanBase.SelectedDrives.Add(lvi.Tag as DriveInfo);
            }

            if (ScanBase.SelectedDrives.Count == 0)
            {
                MessageBox.Show(Application.Current.MainWindow, "No drives selected", Utils.ProductName,
                                MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }

            if (string.IsNullOrWhiteSpace(SearchFilter))
            {
                MessageBox.Show(Application.Current.MainWindow, "At least one search filter must be specified",
                                Utils.ProductName, MessageBoxButton.OK, MessageBoxImage.Error);
                return;
            }

            ScanBase.MoveNext();
        }
Exemplo n.º 2
0
        private void buttonContinue_Click(object sender, RoutedEventArgs e)
        {
            // Set last scan errors found
            Settings.Default.lastScanErrors = Wizard.FileList.Count;

            ScanBase.MoveNext();
        }
Exemplo n.º 3
0
 private void buttonContinue_Click(object sender, RoutedEventArgs e)
 {
     ScanBase.MoveNext();
 }