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