//Methods #region TraceException /// <summary> /// Traces the exception. /// </summary> /// <param name="ex">The ex.</param> public static void TraceException(Exception ex) { var exceptionMessage = $"{ex.Message} - {ex.StackTrace}"; Tracer.TraceMessage(exceptionMessage); ExceptionForm.ShowDialog(ex); }
public static void ShowDialog(Exception ex) { var form = new ExceptionForm(); form.messageLabel.Text = ex.Message; form.AddException(ex); form.exceptionListView.Items[0].Selected = true; form.ShowDialog(); }