static void SendCrashReport(Exception ex) { CheckForUpdates updateChecker = new CheckForUpdates(); updateChecker.PadUrl = PadUrl; ThreadExceptionDialogEx dlg = new ThreadExceptionDialogEx(ex); dlg.SendReportEvent += updateChecker.SendReport; if (MainForm.Instance != null) dlg.ShowDialog(MainForm.Instance); else dlg.ShowDialog(); }
static void SendCrashReport(Exception ex) { CheckForUpdates updateChecker = new CheckForUpdates(); updateChecker.PadUrl = PadUrl; ThreadExceptionDialogEx dlg = new ThreadExceptionDialogEx(ex); dlg.SendReportEvent += updateChecker.SendReport; if (MainForm.Instance != null) { dlg.ShowDialog(MainForm.Instance); } else { dlg.ShowDialog(); } }
private void checkForUpdateToolStripMenuItem_Click(object sender, EventArgs e) { try { using (new HourGlass(this)) { CheckForUpdates updateChecker = new CheckForUpdates(); updateChecker.PadUrl = Program.PadUrl; updateChecker.PromptAlways = true; updateChecker.SendReport(null); } } catch (Exception ex) { ThreadExceptionDialog dlg = new ThreadExceptionDialog(ex); dlg.Text = "Error checking for new updates"; dlg.ShowDialog(this); } }
private void checkForUpdateToolStripMenuItem_Click(object sender, EventArgs e) { try { using(new HourGlass(this)) { CheckForUpdates updateChecker = new CheckForUpdates(); updateChecker.PadUrl = Program.PadUrl; updateChecker.PromptAlways = true; updateChecker.SendReport(null); } } catch (Exception ex) { ThreadExceptionDialog dlg = new ThreadExceptionDialog(ex); dlg.Text = "Error checking for new updates"; dlg.ShowDialog(this); } }