Exemplo n.º 1
0
        private void startSortingButton_Click(object sender, EventArgs e)
        {
            progressBar.Style = ProgressBarStyle.Marquee;

            if (!string.IsNullOrEmpty(FolderPath))
            {
                worker = (new BackGroundWorkerFactory()).GetBackGroundSorterWorker(FolderPath);
                worker.ProgressChanged += backgroundWorker_ProgressChanged;
                worker.RunWorkerAsync();
            }

            progressBar.Style = ProgressBarStyle.Continuous;
        }
Exemplo n.º 2
0
        private void startSortingButton_Click(object sender, EventArgs e)
        {
            progressBar.Style = ProgressBarStyle.Marquee;

            if (!string.IsNullOrEmpty(FolderPath))
            {
                worker = (new BackGroundWorkerFactory()).GetBackGroundSorterWorker(FolderPath);
                worker.ProgressChanged += backgroundWorker_ProgressChanged;
                worker.RunWorkerAsync();
            }

            progressBar.Style = ProgressBarStyle.Continuous;

        }