private static void InternalShowException(string textblock, string textbox, string title, Window owner) { try { ExceptionBox window = new ExceptionBox(textblock, textbox, title); if (owner != null) { window.Owner = owner; } window.ShowDialog(); } catch (Exception ex) { Trace.Write(new TextExceptionFormatter(ex).Format()); } }
public static void ShowException(string startText, Exception ex, string title = null, Window owner = null) { ExceptionBox.ShowException(startText, new TextExceptionFormatter(ex).Format(), title, owner); }
public static void ShowException(Exception ex, string title = null, Window owner = null) { ExceptionBox.ShowException(TextExceptionFormatter.GetInnerException(ex).Message, new TextExceptionFormatter(ex).Format(), title, owner); }