public void ReportFatalMessageWithStackTrace(string message, object[] args) { var s = string.Format(message, args); var stack = new System.Diagnostics.StackTrace(true); ExceptionReportingDialog.ReportMessage(s, stack, true); }
/// <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 = string.Format(message, args); ExceptionReportingDialog.ReportMessage(s, error, false); }