Exemple #1
0
        private void bw10_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                ResultBox10.AppendText("BW stopped. Errors occured." + Environment.NewLine);
                ResultBox10.AppendText(e.Result.ToString() + "" + Environment.NewLine);
                totalErrors10++;
            }
            else
            {
                if (e.Cancelled)
                {
                    ResultBox10.AppendText("Cancelled by user." + Environment.NewLine);
                    totalErrors10++;
                }
                else
                {
                    WorkResult result = e.Result as WorkResult;
                    ResultBox10.AppendText(result.ToString() + Environment.NewLine);
                    totalErrors10 += result.errors();
                }
            }

            Start10.Enabled = true;
        }
Exemple #2
0
        private void bw10_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            this.progressBar10.Value = e.ProgressPercentage;
            string reportmsg = e.UserState as String;

            ResultBox10.AppendText(reportmsg + Environment.NewLine);
        }
Exemple #3
0
        private void Start10_Click(object sender, EventArgs e)
        {
            Start10.Enabled = false;
            totalErrors10   = 0;

            if (bw10.IsBusy != true)
            {
                bw10.RunWorkerAsync();
                ResultBox10.AppendText("Running..." + Environment.NewLine);
            }
        }