Example #1
0
        /// <summary>
        /// Shows the exception.
        /// </summary>
        /// <param name="Title">The title.</param>
        /// <param name="Message">The message.</param>
        /// <param name="ex">The ex.</param>
        /// <returns></returns>
        public static ExceptionForm ShowException(String Title, String Message, Exception ex)
        {
            ExceptionForm f = new ExceptionForm();

            f.Text = Title;
            f.txtException.Text = StringUtil.ToString(ex);
            f.txtMessage.Text   = Message;
            f.ShowDialog();
            return(f);
        }
Example #2
0
 /// <summary>
 /// Shows the report.
 /// </summary>
 /// <param name="exception">The exception.</param>
 /// <param name="title">The title.</param>
 /// <param name="message">The message.</param>
 public static ExceptionForm ShowReport(this Exception exception, string title, string message)
 {
     return(ExceptionForm.ShowException(title, message, exception));
 }