示例#1
0
 public void HideProgressDialog()
 {
     if (_progressDialog != null)
     {
         if (_progressDialog.IsVisible)
             _progressDialog.Hide();
         _progressDialog = null;
     }
 }
示例#2
0
 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;
 }