Пример #1
0
        private void listDupsBtn_Click(object sender, RoutedEventArgs e)
        {
            fileDestroyerPGB.Value = 0;
            var fileWorker = new GetFiles(_standardPath, GetFilters(tabControl1.SelectedIndex));

            fileWorker.ProgressChanged    += Report_ProgressChanged;
            fileWorker.RunWorkerCompleted += FileWorker_RunWorkerCompleted;

            if (fileWorker.IsBusy)
            {
                return;
            }

            var count = fileWorker.GetDirectoryCount(_standardPath.FullName);

            fileDestroyerPGB.Maximum  = count;
            ImageProgressBar.Maximum  = count;
            audioDestroyerPBG.Maximum = count;
            fileWorker.RunWorkerAsync();
        }