Beispiel #1
0
 private void MainMenu_Choice(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.F1)
     {
         Withdrawal.PerformClick();
     }
     else if (e.Key == Key.F2)
     {
         Mini_Statement.PerformClick();
     }
     else if (e.Key == Key.F3)
     {
         Account_Balance.PerformClick();
     }
     else if (e.Key == Key.F4)
     {
         Change_Pin.PerformClick();
     }
     else if (e.Key == Key.F8)
     {
         Cancel.PerformClick();
     }
 }