Esempio n. 1
0
        public void ReportFatalMessageWithStackTrace(string message, object[] args)
        {
            var s     = message.FormatWithErrorStringInsteadOfException(args);
            var stack = new System.Diagnostics.StackTrace(true);

            ExceptionReportingDialog.ReportMessage(s, stack, true);
        }
Esempio n. 2
0
        /// <summary>
        /// Bring up a "yellow box" that let's them send in a report, then return to the program.
        /// </summary>
        public void ReportNonFatalExceptionWithMessage(Exception error, string message, params object[] args)
        {
            var s = message.FormatWithErrorStringInsteadOfException(args);

            ExceptionReportingDialog.ReportMessage(s, error, false);
        }