Пример #1
0
        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            SDECheckerManager cm = SDECheckerManager.GetInstance();
            AppManager        am = AppManager.GetInstance();

            cm.Check(am.TaskName, cbxCheckPartial.Checked);
        }
Пример #2
0
        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();
        }
Пример #3
0
        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;
        }