Exemple #1
0
 public static void OnOk(IDialogCallbacks callbacks, DialogParm result)
 {
     if (callbacks != null)
     {
         callbacks.OnOk(result);
     }
 }
Exemple #2
0
 void IDialogCallbacks.OnOk(DialogParm result)
 {
     dialogHistory.Push(this);
     if (ok != null)
     {
         try
         {
             ok.Invoke(result);
         }
         catch (Exception ex)
         {
             ToolboxMethods.ShowException("Dialog OnOk", ex);
             ToolboxMethods.LogException(ex);
         }
     }
 }
Exemple #3
0
 void ActivateCore(DialogParm args)
 {
     this.args = args;
     dialogForm.Activate(this, args);
     Form.TopMost = true;
     Form.Show();
     OnEnter();
 }
Exemple #4
0
 void IDialog.Activate(DialogParm args)
 {
     PreviousFormOnLeave();
     ActivateCore(args);
     HidePreviousForm();
 }