private void CloseOnEscape(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Escape)
     {
         Close();
     }
     if (e.Key == Key.F1)
     {
         AboutScreen aboutScreen = new AboutScreen();
         aboutScreen.Show();
     }
 }
Beispiel #2
0
 private void CloseOnEscape(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Escape)
     {
         Close();
     }
     else if (e.Key == Key.F1)
     {
         AboutScreen aboutScreen = new AboutScreen();
         aboutScreen.Show();
     }
     //else if ((e.Key == Key.Delete) || (e.Key == Key.Back))
     //{
     //    txtLine9.Text = "";
     //}
     //else
     //{
     //    //txtLine9.Focus();
     //    button_Enter.Focus();
     //}
 }