Exemple #1
0
 /// <summary>
 /// To be called when this handler was construced with showModally set to true.
 /// <param name="state"></param>
 /// </summary>
 public void ShowModal(ProgressDialogProgressState state)
 {
     Debug.Assert(_progressDialog != null, @"If this is null then the behavior of this class has changed, and this method needs to.");
     if (state == null)
     {
         throw new ArgumentNullException(@"state",
                                         @"State must be set to a ProgressDialogState object which is related to this handler.");
     }
     _currentCommand.BeginInvoke(state);
     _progressDialog.ShowDialog();
 }