示例#1
0
        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();
        }
示例#2
0
        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();
            }
        }
示例#3
0
 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);
     }
 }
示例#4
0
 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);
     }
 }