/// <summary> /// Displays the error reporting form. /// </summary> /// <param name="ex">The exception to report.</param> /// <param name="uploadUri">The URI to upload error reports to.</param> /// <remarks>Modal to all windows on the current thread. Creates a new message loop if none exists.</remarks> public static void Report(Exception ex, Uri uploadUri) { var form = new ErrorReportForm(ex, uploadUri); if (Application.MessageLoop) { form.ShowDialog(); } else { Application.Run(form); } }
/// <summary> /// Displays the error reporting form. /// </summary> /// <param name="ex">The exception to report.</param> /// <param name="uploadUri">The URI to upload error reports to.</param> /// <remarks>Modal to all windows on the current thread. Creates a new message loop if none exists.</remarks> public static void Report(Exception ex, Uri uploadUri) { var form = new ErrorReportForm(ex, uploadUri); if (Application.MessageLoop) form.ShowDialog(); else Application.Run(form); }