bug
lu
2025-06-16 89776d6f53dff45b1ac0ee20438f5aa8dab2d0e5
DevApp/Gs.DevApp/ToolBox/MsgHelper.cs
@@ -4,19 +4,19 @@
namespace Gs.DevApp.ToolBox
{
    /// <summary>
    ///  系统消息提示窗体
    ///     系统消息提示窗体
    /// </summary>
    public class MsgHelper
    {
        /// <summary>
        ///  打开对话框
        ///     打开对话框
        /// </summary>
        /// <param name="msg">本次对话内容</param>
        /// <returns></returns>
        public static bool AskQuestion(string msg)
        {
            DialogResult r;
            r = MessageBox.Show(msg, "确认",
            r = MessageBox.Show(msg, "提示",
                MessageBoxButtons.YesNo,
                MessageBoxIcon.Question,
                MessageBoxDefaultButton.Button2);
@@ -24,7 +24,7 @@
        }
        /// <summary>
        ///  错误消息提示框
        ///     错误消息提示框
        /// </summary>
        /// <param name="msg">错误消息内容</param>
        public static void ShowError(string msg)
@@ -36,7 +36,7 @@
        }
        /// <summary>
        ///  显示系统异常
        ///     显示系统异常
        /// </summary>
        /// <param name="e">系统异常</param>
        public static void ShowException(Exception e)
@@ -53,24 +53,8 @@
            Warning(s);
        }
        public static void ShowException(Exception ex, string customMessage)
        {
            //if (ex is CustomException)
            //{
            //    ShowException(ex);
            //}
            //else if (customMessage != "")
            //{
            //    Warning(customMessage);
            //}
            //else
            //{
            //    Warning(ex.Message);
            //}
        }
        /// <summary>
        ///  信息提示框
        ///     信息提示框
        /// </summary>
        /// <param name="msg">本次显示的消息</param>
        public static void ShowInformation(string msg)
@@ -82,7 +66,7 @@
        }
        /// <summary>
        ///  警告提示框
        ///     警告提示框
        /// </summary>
        /// <param name="msg">警告内容</param>
        public static void Warning(string msg)
@@ -93,4 +77,4 @@
                MessageBoxDefaultButton.Button1);
        }
    }
}
}