Exemplo n.º 1
0
        private void bw6_ProgressChanged(object sender, ProgressChangedEventArgs e)
        {
            this.progressBar6.Value = e.ProgressPercentage;
            string reportmsg = e.UserState as String;

            ResultBox6.AppendText(reportmsg + Environment.NewLine);
        }
Exemplo n.º 2
0
        private void Start6_Click(object sender, EventArgs e)
        {
            Start6.Enabled = false;
            totalErrors6   = 0;

            if (bw6.IsBusy != true)
            {
                bw6.RunWorkerAsync();
                ResultBox6.AppendText("Running..." + Environment.NewLine);
            }
        }
Exemplo n.º 3
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;
        }