private static void ReportException(Exception exp) { ErrorReporting report = new ErrorReporting(exp); using (ReportError showError = new ReportError()) { showError.ShowReport(report); } }
private static void FindNewPluginInst_FindNewException(Exception exception, bool unhandled) { if (unhandled) { ErrorReporting report = new ErrorReporting(exception); using (ReportError showError = new ReportError()) { showError.ShowReport(report); } } else { ErrorReporting reportException = new ErrorReporting("Find New Error", exception); reportException.SendReport(); } }