internal static bool ShowOkCancel(Form owner, string title, string message, EDontShowAgainId dontShowAgainId, DialogResult?dontShowAgainValue, Image image = null) { if (image == null) { image = Resources.MsgHelp; } MsgBoxButton[] buttons = { new MsgBoxButton("OK", Resources.MnuAccept, DialogResult.OK) , new MsgBoxButton("Cancel", Resources.MnuBack, DialogResult.Cancel) }; return(Show(new MsgBox(owner, title, null, message, image, buttons, null, null, dontShowAgainId, DialogResult.OK)) == DialogResult.OK); }
internal static void ShowHint(Form owner, string text, EDontShowAgainId id, Image image = null) { if (image == null) { image = Resources.MsgHelp; } FrmMsgBox.Show(owner, "Hint", null, text, image, new[] { new MsgBoxButton(DialogResult.OK) }, id, DialogResult.OK); }
public static void ShowWarning(Form owner, string title, string message, EDontShowAgainId dontShowAgainId = EDontShowAgainId.None) { MsgBoxButton[] buttons = { new MsgBoxButton("OK", Resources.MnuAccept, DialogResult.OK) }; Show(owner, title, null, message, Resources.MsgWarning, buttons, dontShowAgainId, null); }
public static DialogResult Show(Form owner, string title, string subTitle, string message, Image image, IEnumerable <MsgBoxButton> buttons, EDontShowAgainId dontShowAgainId, DialogResult?dontShowAgainValue) { return(Show(new MsgBox(owner, title, subTitle, message, image, buttons, null, null, dontShowAgainId, dontShowAgainValue))); }
public static void ShowInfo(Form owner, string title, string message, EDontShowAgainId dontShowAgainId) { MsgBoxButton[] buttons = { new MsgBoxButton("OK", Resources.MnuAccept, DialogResult.OK) }; Show(new MsgBox(owner, title, null, message, Resources.MsgInfo, buttons, null, null, dontShowAgainId, null)); }