Exemple #1
0
        public static DialogResult ShowMsg(IWin32Window win, string title, string message, form.frmMessage.enMessageType enType, out bool ApplyAll, int intSecClose = 0, DialogResult defalutResult = DialogResult.No)
        {
            if (win == null)
            {
                return(ShowMsg(title, message, enType, out ApplyAll));
            }
            else
            {
                form.frmMessage frmMsg = new form.frmMessage(title, message, enType, intSecClose, defalutResult, true);

                if (((Form)win).InvokeRequired)
                {
                    frmMsg.TopMost = true;

                    frmMsg.ShowDialog();

                    ApplyAll = frmMsg.ApplyAll;

                    return(frmMsg.DialogResult);
                }
                else
                {
                    frmMsg.ShowDialog(win);

                    ApplyAll = frmMsg.ApplyAll;

                    return(frmMsg.DialogResult);
                }
            }
        }
Exemple #2
0
        public static DialogResult ShowMsg(string title, string message, form.frmMessage.enMessageType enType, out bool ApplyAll, int intSecClose = 0, DialogResult defalutResult = DialogResult.No)
        {
            form.frmMessage frmMsg = new form.frmMessage(title, message, enType, intSecClose, defalutResult, true);

            frmMsg.ShowDialog();

            ApplyAll = frmMsg.ApplyAll;

            return(frmMsg.DialogResult);
        }
Exemple #3
0
 public static DialogResult ShowMsg(string title, string message, form.frmMessage.enMessageType enType, int intSecClose = 0, DialogResult defalutResult = DialogResult.No)
 {
     form.frmMessage frmMsg = new form.frmMessage(title, message, enType, intSecClose, defalutResult);
     return(frmMsg.ShowDialog());
 }