コード例 #1
0
ファイル: Form1.cs プロジェクト: myak555/PETRONODE
 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());
     }
 }
コード例 #2
0
 /// <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();
 }