private void richTextBox2_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F1) { e.Handled = true; ToolLauncher.LaunchLocalHelp("SlideComposer"); } if (!backgroundWorker1.IsBusy && e.KeyCode == Keys.F5) { e.Handled = true; this.button4_Click(this, new EventArgs()); } if (backgroundWorker1.IsBusy && e.KeyCode == Keys.Escape) { e.Handled = true; this.button4_Click(this, new EventArgs()); } }
/// <summary> /// Goes to the Petronode website in a browser /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { ToolLauncher.LaunchBrowser(); Application.Exit(); }