private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { SDECheckerManager cm = SDECheckerManager.GetInstance(); AppManager am = AppManager.GetInstance(); cm.Check(am.TaskName, cbxCheckPartial.Checked); }
private void button1_Click(object sender, EventArgs e) { this.button1.Enabled = false; SDECheckerManager cm = SDECheckerManager.GetInstance(); cm.LoadConfig(Path.GetDirectoryName(Application.ExecutablePath) + @"/CheckerConfigs/" + cbxSolution.Text + ".xml"); this.progressBar1.Visible = true; backgroundWorker1.RunWorkerAsync(); }
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { this.button1.Enabled = true; SDECheckerManager cm = SDECheckerManager.GetInstance(); lstErrors.DataSource = null; lstErrors.Items.Clear(); lstErrors.DataSource = cm.Errors; lblProblemCount.Text = cm.Errors.Count.ToString(); lblRecordCount.Text = cm.CheckItemCount.ToString(); tbxLog.Lines = cm.Log.ToArray(); this.progressBar1.Visible = false; }