Exemple #1
0
        /// <summary>
        ///     显示一般类信息提示。
        /// </summary>
        public static void ShowMessage(string message)
        {
            var formSysMessage = new FormSysMessage();

            formSysMessage.LblMessage.Text = message;
            formSysMessage.ShowDialog();
        }
Exemple #2
0
        /// <summary>
        ///     显示异常信息,该方法为静态方法,可以直接进行调用。
        /// </summary>
        public static void ShowException(Exception exception)
        {
            var formSysMessage = new FormSysMessage();

            formSysMessage.LblMessage.Text = exception.Message;

            formSysMessage.LblDetailMessage.Visible = true;
            formSysMessage.Size = detailModeSize;
            formSysMessage.ShowDialog();
        }