/// <summary> /// The show exception. /// </summary> /// <param name="message"> /// The message. /// </param> /// <param name="exception"> /// The exception. /// </param> /// <param name="stacktrace"> /// The stacktrace. /// </param> public static void ShowException(string message, Exception exception, string stacktrace) { Application.Current.Dispatcher.Invoke( delegate { var box = new UserExceptionMessageBox(message, exception, stacktrace); box.ShowDialog(); }); }
/// <summary> /// The show. /// </summary> /// <param name="message"> /// The message. /// </param> /// <param name="exception"> /// The exception. /// </param> public static void ShowException(string message, Exception exception) { Application.Current.Dispatcher.Invoke( delegate { var box = new UserExceptionMessageBox(message, exception, string.Empty); box.ShowDialog(); }); }