예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void VerifyTextBox_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         VerifyButton.PerformClick();
     }
 }
예제 #2
0
 public void PrimeNumbersApp_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         Close();
     }
     if (e.KeyCode == Keys.Enter)
     {
         VerifyButton.PerformClick();
     }
     if (e.KeyCode == Keys.ControlKey)
     {
         VerifyTextTick.Checked = !VerifyTextTick.Checked;
     }
 }