Ejemplo n.º 1
0
 public static System.Windows.Forms.DialogResult Show(string i_StrMsg, string i_Title, MsgBtnType i_ButtonStyle, MsgIconType i_IconMessage)
 {
     switch (i_ButtonStyle)
     {
         case MsgBtnType.MsgBtnOK:
             MsgBoxForm_OK v_MyFormMsgOK = new MsgBoxForm_OK();
             m_MsgResult = v_MyFormMsgOK.Display(i_StrMsg, i_Title, i_IconMessage);
             break;
         case MsgBtnType.MsgBtnYes_No:
             MsgBoxForm_Yes_No v_MyFormMsgYN = new MsgBoxForm_Yes_No();
             m_MsgResult = v_MyFormMsgYN.Display(i_StrMsg, i_Title, i_IconMessage);
             break;
         case MsgBtnType.MsgBtnYes_No_Cancel:
             MsgBoxFormYes_No_Cancel v_MyFormMsgYNC = new MsgBoxFormYes_No_Cancel();
             m_MsgResult = v_MyFormMsgYNC.Display(i_StrMsg, i_Title, i_IconMessage);
             break;
     }
     return m_MsgResult;
 }
 //Hàm thông báo Thông tin thông thường bằng chuỗi
 public static void MsgBox_Infor(string i_strMsg)
 {
     MsgBoxForm_OK v_FormMsg = new MsgBoxForm_OK();
     v_FormMsg.Display(i_strMsg, c_InfoMsgString, IP.Core.IPCommon.MessageForms.Msgs.MsgIconType.InfomationIcon);
 }