namespace DMS.Common { public class MsgHelper { public static DialogResult ShowErrorMsgBox(string error) { return MessageBox.Show(error, "错误", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } public static DialogResult ShowInformationMsgBox(string information) { return MessageBox.Show(information, "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } public static DialogResult ShowQuestionMsgBox(string information) { return MessageBox.Show(information, "确认", MessageBoxButtons.YesNo, MessageBoxIcon.Question); } } }
简单封装MessageBox提示对话框,布布扣,bubuko.com
时间: 2024-08-11 05:45:08