Example #1
0
        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;
        }
Example #2
0
        private void bw3_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            this.progressBar3.Value = e.ProgressPercentage;
            string reportmsg = e.UserState as String;

            ResultBox3.AppendText(reportmsg + Environment.NewLine);
        }
Example #3
0
        private void Start3_Click(object sender, EventArgs e)
        {
            Start3.Enabled = false;
            totalErrors3   = 0;

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