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