Example #1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            var arg = new ProjectScanSettings(txtImportRoot.Text,
                                              txtBaseSccPath.Text,
                                              cbCsProj.Checked,
                                              cbVcProj.Checked,
                                              cbDspProj.Checked,
                                              BuildFile);

            ProjectScanProgressForm.Start(arg);
            this.Close();
        }
        public static void Start(ProjectScanSettings conf)
        {
            if (conf == null)
            {
                return;
            }

            var f = new ProjectScanProgressForm();

            f._worker.DoWork += f.DoScanProjects;
            f._worker.RunWorkerAsync(conf);
            f._worker.RunWorkerCompleted        += f.WorkerRunWorkerCompleted;
            f._worker.ProgressChanged           += f.WorkerProgressChanged;
            f._worker.WorkerSupportsCancellation = true;
            f._worker.WorkerReportsProgress      = true;
            f.ShowDialog();
        }