示例#1
0
 protected void InitProgressForm(string text, bool allowcancel)
 {
     _frmProgress = new frmProgress(text, allowcancel);
     datProgressBar.ProgressEvent += new ProgressEventHandler(hndlProgressEvent);
     _frmProgress.Show();
     Application.DoEvents();
 }
示例#2
0
 public void ProgressClose()
 {
     if (_frmProgress != null)
     {
         _frmProgress.Close();
     }
     _frmProgress = null;
 }
示例#3
0
 //frmProgress _frmProgress;
 public void ProgressInit(string caption, int count)
 {
     _frmProgress = new frmProgress(caption, true);
     _frmProgress.progressBar.Maximum = count;
     _frmProgress.progressBar.Minimum = 0;
     _frmProgress.progressBar.Step    = 1;
     _frmProgress.Show(FForm.MdiParent);
     _frmProgress.ProgressCanceled += new EventHandler(_frmProgress_ProgressCanceled);
     Application.DoEvents();
 }
示例#4
0
 protected void CloseProgressForm()
 {
     if (_frmProgress != null)
     {
         _frmProgress.Close();
     }
     _frmProgress = null;
     //this.Activate();
     datProgressBar.ProgressEvent -= new ProgressEventHandler(hndlProgressEvent);
 }