Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 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);
 }
Exemple #4
0
 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)));
 }
Exemple #5
0
 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));
 }