예제 #1
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);
        }
예제 #2
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());
 }
예제 #3
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);
                }
            }
        }