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 bw6_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
        {
            if (e.Error != null)
            {
                ResultBox6.AppendText("Errors occured. Please see log above." + Environment.NewLine);
                totalErrors6++;
            }
            else
            {
                if (e.Cancelled)
                {
                    ResultBox6.AppendText("Cancelled." + Environment.NewLine);
                    totalErrors6++;
                }
                else
                {
                    WorkResult result = e.Result as WorkResult;
                    ResultBox6.AppendText(result.ToString() + Environment.NewLine);
                    totalErrors6 += result.errors();
                }
            }

            Start6.Enabled = true;
        }