Beispiel #1
0
 public static void OnOk(IDialogCallbacks callbacks, DialogParm result)
 {
     if (callbacks != null)
     {
         callbacks.OnOk(result);
     }
 }
Beispiel #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);
         }
     }
 }
Beispiel #3
0
 void ActivateCore(DialogParm args)
 {
     this.args = args;
     dialogForm.Activate(this, args);
     Form.TopMost = true;
     Form.Show();
     OnEnter();
 }
Beispiel #4
0
 void IDialog.Activate(DialogParm args)
 {
     PreviousFormOnLeave();
     ActivateCore(args);
     HidePreviousForm();
 }