示例#1
0
        void bw_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs eventArgs)
        {
            label.Text = Resources.String15;

            if (eventArgs.Error != null)
            {
                Progress.AddLog(eventArgs.Error.Message);

                this.ProgressDialogResult = ProgressDialogResult.Failure;
            }
            else if (eventArgs.Cancelled)
            {
                this.ProgressDialogResult = ProgressDialogResult.Failure;
            }
            else
            {
                this.ProgressDialogResult = ProgressDialogResult.Success;
            }

            this.Close();
        }