private void bw3_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) { if (e.Error != null) { ResultBox3.AppendText("BW stopped. Errors occured." + Environment.NewLine); ResultBox3.AppendText(e.Result.ToString() + "" + Environment.NewLine); totalErrors3++; } else { if (e.Cancelled) { ResultBox3.AppendText("Cancelled by user." + Environment.NewLine); totalErrors3++; } else { WorkResult result = e.Result as WorkResult; ResultBox3.AppendText(result.ToString() + Environment.NewLine); totalErrors3 += result.errors(); } } Start3.Enabled = true; }
private void bw3_ProgressChanged(object sender, ProgressChangedEventArgs e) { this.progressBar3.Value = e.ProgressPercentage; string reportmsg = e.UserState as String; ResultBox3.AppendText(reportmsg + Environment.NewLine); }
private void Start3_Click(object sender, EventArgs e) { Start3.Enabled = false; totalErrors3 = 0; if (bw3.IsBusy != true) { bw3.RunWorkerAsync(); ResultBox3.AppendText("Running..." + Environment.NewLine); } }