Beispiel #1
0
        public static DialogResult Show(string msg)
        {
            try
            {
                DevMessageBox aDevMessageBox = new DevMessageBox(msg);
                aDevMessageBox.WriteMessageLog(msg);
                DialogResult dr = aDevMessageBox.ShowDialog();

                return(dr);
            }
            catch (Exception ce)
            {
                throw ce;
            }
        }
Beispiel #2
0
        public static DialogResult Show(string msg, string caption, MyMessageBoxButtons btns)
        {
            try
            {
                DevMessageBox aDevMessageBox = new DevMessageBox(msg, caption, btns);

                DialogResult dr = aDevMessageBox.ShowDialog();

                return(dr);
            }
            catch (Exception ce)
            {
                throw ce;
            }
        }
Beispiel #3
0
        /// <summary>
        /// xll 静态方法 弹出框 指定时间后关闭
        /// </summary>
        /// <param name="msg"></param>
        /// <param name="timerSecond"></param>
        /// <returns></returns>
        public static DialogResult Show(string msg, int timerSecond)
        {
            try
            {
                DevMessageBox aDevMessageBox = new DevMessageBox(msg, timerSecond);


                DialogResult dr = aDevMessageBox.ShowDialog();

                return(dr);
            }
            catch (Exception ce)
            {
                throw ce;
            }
        }
Beispiel #4
0
 //2013-02-19,WangGuojin
 public static DialogResult Show(int msgID, string exmsg)
 {
     try
     {
         MyMessageBox   yBox           = new MyMessageBox();
         string         msg            = yBox.GetMessageConfig(msgID);
         MessageBoxIcon icontype       = MessageBoxIcon.ErrorIcon;
         DevMessageBox  aDevMessageBox = new DevMessageBox(msg, icontype);
         aDevMessageBox.WriteMessageLog(exmsg);
         aDevMessageBox.m_sSysMessage = exmsg;
         DialogResult dr = aDevMessageBox.ShowDialog();
         return(dr);
     }
     catch (Exception ce)
     {
         throw ce;
     }
 }