示例#1
0
        private void startSortingButton_Click(object sender, EventArgs e)
        {
            progressBar.Style = ProgressBarStyle.Marquee;

            if (fileCollection != null)
            {
                worker = (new BackGroundWorkerFactory()).GetBackGroundSorterWorker(fileCollection);
                worker.ProgressChanged += backgroundWorker_ProgressChanged;
                worker.RunWorkerAsync();
            }

            progressBar.Style = ProgressBarStyle.Continuous;
        }
示例#2
0
        private void startSortingButton_Click(object sender, EventArgs e)
        {
            progressBar.Style = ProgressBarStyle.Marquee;

            if (fileCollection!=null)
            {
                worker = (new BackGroundWorkerFactory()).GetBackGroundSorterWorker(fileCollection);
                worker.ProgressChanged += backgroundWorker_ProgressChanged;
                worker.RunWorkerAsync();
            }

            progressBar.Style = ProgressBarStyle.Continuous;

        }