public void HideProgressDialog() { if (_progressDialog != null) { if (_progressDialog.IsVisible) _progressDialog.Hide(); _progressDialog = null; } }
private void viewModel_TestStarted(object sender, EventArgs e) { _progressDialog = new ProgressDialog(); _progressDialog.Owner = _connectForm; _progressDialog.Title = Properties.Resources.Connect_Progress_Testing; if (!_progressDialog.ShowDialog() ?? false) { _viewModel.CancelTest(); } _progressDialog = null; }