public static DialogResult ShowMsg(string strMsg1, string strMsg2, frmMessage.enMessageType enType, int intSecClose) { frmMessage frmMsg = new frmMessage(strMsg1, strMsg2, enType, intSecClose); return(frmMsg.ShowDialog()); }
/// <summary> /// 메시지 창을 띄운다.. /// </summary> /// <param name="win"></param> /// <param name="strMsg1"></param> /// <param name="strMsg2"></param> /// <param name="enType"></param> /// <returns></returns> public static DialogResult ShowMsg(IWin32Window win, string strMsg1, string strMsg2, frmMessage.enMessageType enType) { frmMessage frmMsg = new frmMessage(strMsg1, strMsg2, enType); if (((Form)win).InvokeRequired) { return(frmMsg.ShowDialog()); } else { return(frmMsg.ShowDialog(win)); } }