private static void OnSubmittingEvent(object sender, EventSubmittingEventArgs e) { // ev.ExceptionlessClientInfo.Platform = ".NET Windows"; if (!e.IsUnhandledError) return; var dialog = new CrashReportForm(e.Client, e.Event); e.Cancel = dialog.ShowDialog() != DialogResult.OK; }
private bool ShowDialog(Error error) { var dialog = new CrashReportForm(error); DialogResult result = dialog.ShowDialog(); return result == DialogResult.OK; }
private static void UnhandledExceptionReporting(object sender, UnhandledExceptionReportingEventArgs e) { var dialog = new CrashReportForm(e.Error); DialogResult result = dialog.ShowDialog(); e.Cancel = result == DialogResult.Cancel; }