示例#1
0
        public eBTNTYPE Show(string msg, MsgType type, eBTNSTYLE btns)
        {
            CloseAllMsgBox();
            frm_Msg    msgBox     = new frm_Msg();
            MSGBOXDATA msgBoxData = new MSGBOXDATA
            {
                message  = msg,
                msgType  = type,
                btnStyle = btns
            };

            OnEventMsgBoxData?.Invoke(this, msgBoxData);

            msgBox.Show();
            return(btnRlt);
        }
示例#2
0
        public eBTNTYPE ShowDialog(string msg, MsgType type, eBTNSTYLE btns)
        {
            CloseAllMsgBox();
            frm_Msg    msgBox     = new frm_Msg();
            MSGBOXDATA msgBoxData = new MSGBOXDATA
            {
                message  = msg,
                msgType  = type,
                btnStyle = btns
            };

            OnEventMsgBoxData?.Invoke(this, msgBoxData);

            //msgBox.SetTskProc(true);
            msgBox.Topmost = true;
            msgBox.ShowDialog();
            //msgBox.SetTskProc();
            return(btnRlt);
        }