Example #1
0
				private void MainForm_AboutClick(object sender, EventArgs e)
				{
					OkCancelDialog dlg = new OkCancelDialog();
					dlg.ShowDialog(new AboutControl(),this);
				}
Example #2
0
		public static void OnFatalError(Exception e)
		{
			OkCancelDialog dlg = new OkCancelDialog();
			dlg.Text = "Fatal Error, Restart ?";
			CrashReport view = new CrashReport();
			view.SetException(e);
			if (dlg.ShowDialog(view, null) == System.Windows.Forms.DialogResult.OK)
          Application.Restart();
      else
          System.Environment.Exit(0);
		}