示例#1
0
 private void SlowProgressDialog_Shown(object sender, EventArgs e)
 {
     if (OnBeginBackgroundWork != null)
     {
         SlowWork.RunWorkerAsync();
     }
     else
     {
         DialogResult = DialogResult.Abort;
     }
 }
 private void SlowProgressDialog_Shown(object sender, EventArgs e)
 {
     if (OnBeginBackgroundWork != null)
     {
         ExceptionResult   = null;
         CancelBtn.Enabled = true;
         SlowWork.RunWorkerAsync();
     }
     else
     {
         DialogResult = DialogResult.Abort;
     }
 }