Exemplo n.º 1
0
 protected void InitProgressForm(string text, bool allowcancel)
 {
     _frmProgress = new frmProgress(text, allowcancel);
     datProgressBar.ProgressEvent += new ProgressEventHandler(hndlProgressEvent);
     _frmProgress.Show();
     Application.DoEvents();
 }
Exemplo n.º 2
0
 public void ProgressClose()
 {
     if (_frmProgress != null)
     {
         _frmProgress.Close();
     }
     _frmProgress = null;
 }
Exemplo n.º 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();
 }
Exemplo n.º 4
0
 protected void CloseProgressForm()
 {
     if (_frmProgress != null)
     {
         _frmProgress.Close();
     }
     _frmProgress = null;
     //this.Activate();
     datProgressBar.ProgressEvent -= new ProgressEventHandler(hndlProgressEvent);
 }