コード例 #1
0
        /// <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());
        }
コード例 #2
0
        //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());
        }