/// <summary> /// 显示报错信息 /// </summary> /// <param name="ex"></param> /// <returns></returns> public static DialogResult ShowMessage(Exception ex) { MessageForm ms = new MessageForm(MessageType.Information, ex.Message); return(ms.ShowDialog()); }
//Message /// <summary> /// 显示提示信息 /// </summary> /// <param name="messageType"></param> /// <param name="message"></param> /// <returns></returns> public static DialogResult ShowMessage(MessageType messageType, string message) { MessageForm ms = new MessageForm(messageType, message); return(ms.ShowDialog()); }