예제 #1
0
        public void ExecuteWork()
        {
            progressBar.Value = 0;
            logBox.Clear();
            logBox.Text += "Starting Task..." + Environment.NewLine;
            startButton.Enabled = false;
            cancelButton.Enabled = true;
            Application.DoEvents();

            fc = new Cleaner();
            fc.RootDirectory = targetDirectory.Text;

            var p = profileLoader();
            folderLoader(p);
            fileTypeLoader();
            dateLoader();
            BackupSimulationLoader();

            RunBackgroundTask();
        }