/// <summary> /// 弹出对话框 /// </summary> /// <param name="strAlertType">提示框类型</param> /// <param name="strAlertMsg">显示内容</param> public MyAlert(AlertTypeenum strAlertType, string strAlertMsg) { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; AlertType = strAlertType; AlertMsg = strAlertMsg; }
/// <summary> /// 弹出提示对话框 /// </summary> /// <param name="strAlertType">提示框类型</param> /// <param name="strAlertMsg">显示内容</param> /// <param name="strAlertTitle">显示标题</param> /// <param name="intShowSec">显示时间</param> public MyAlert(AlertTypeenum strAlertType, string strAlertMsg, string strAlertTitle, int intShowSec) { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.None; this.WindowState = FormWindowState.Maximized; AlertType = strAlertType; AlertMsg = strAlertMsg; AlertTitle = strAlertTitle; ShowSec = intShowSec; }