Esempio n. 1
0
 /// <summary>
 /// Sends the report.
 /// </summary>
 /// <param name="ex">The ex.</param>
 /// <param name="title">The title.</param>
 /// <param name="version">The version.</param>
 public static void ShowErrorReport(Exception ex, string title, Version version)
 {
     using (var form = new FormErrorReport())
     {
         form.report = ErrorReport.CreateReport(ex, title, version);
         form.ShowDialog();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Shows the specified title.
 /// </summary>
 /// <param name="title">The title.</param>
 /// <param name="ex">The ex.</param>
 public static void Show(string title, Exception ex)
 {
     Show(ErrorReport.CreateReport(ex, title, AppInfo.Version));
 }