Example #1
0
        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());
            }
        }
Example #2
0
 public static void ShowException(string startText, Exception ex, string title = null, Window owner = null)
 {
     ExceptionBox.ShowException(startText, new TextExceptionFormatter(ex).Format(), title, owner);
 }
Example #3
0
 public static void ShowException(Exception ex, string title = null, Window owner = null)
 {
     ExceptionBox.ShowException(TextExceptionFormatter.GetInnerException(ex).Message, new TextExceptionFormatter(ex).Format(), title, owner);
 }