private void CloseProgressDialog() { if (_progressdialog != null) { _progressdialog.Close(); _progressdialog = null; } }
/// <summary> /// Shows the progress dialog. /// </summary> private void ShowProgressDialog(string title, int totalitems) { if (_progressdialog != null) throw new ApplicationException("Progress dialog already open!"); _progressdialog = new ProgressForm(); _progressdialog.ResetDialog(title); _progressdialog.TotalProgress.Maximum = totalitems; _progressdialog.Show(this); }