Пример #1
0
 public void AmountKeys(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.F1)
     {
         Rs500.PerformClick();
     }
     if (e.Key == Key.F1)
     {
         Rs1000.PerformClick();
     }
     if (e.Key == Key.F1)
     {
         Rs5000.PerformClick();
     }
     if (e.Key == Key.F1)
     {
         Rs10000.PerformClick();
     }
     if (e.Key == Key.F1)
     {
         Confirm.PerformClick();
     }
     if (e.Key == Key.F1)
     {
         Cancel.PerformClick();
     }
 }
 public void ConfirmPinChange_Choice(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.F9)
     {
         Confirm.PerformClick();
     }
     else if (e.Key == Key.F8)
     {
         Cancel.PerformClick();
     }
 }
Пример #3
0
 private void HandleFP(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.A)
     {
         StateInfo.Content = "Scanning";
         var uri = new System.Uri(Sound3);
         mediaPlayer.Open(uri);
         mediaPlayer.Play();
         var timer = new DispatcherTimer {
             Interval = TimeSpan.FromSeconds(5)
         };
         timer.Start();
         timer.Tick += (sender, args) =>
         {
             timer.Stop();
             var uri = new System.Uri(Sound1);
             mediaPlayer.Open(uri);
             mediaPlayer.Play();
             var timerr = new DispatcherTimer {
                 Interval = TimeSpan.FromSeconds(2)
             };
             timerr.Start();
             timerr.Tick += (sender, args) =>
             {
                 timerr.Stop();
                 ChangePin changePin = new ChangePin();
                 this.NavigationService.Navigate(changePin);
             };
         };
     }
     if (e.Key == Key.D)
     {
         StateInfo.Content = "Scanning";
         var uri = new System.Uri(Sound3);
         mediaPlayer.Open(uri);
         mediaPlayer.Play();
         var timer = new DispatcherTimer {
             Interval = TimeSpan.FromSeconds(5)
         };
         timer.Start();
         timer.Tick += (sender, args) =>
         {
             timer.Stop();
             var uri = new System.Uri(Sound2);
             mediaPlayer.Open(uri);
             mediaPlayer.Play();
         };
     }
     if (e.Key == Key.F8)
     {
         Cancel.PerformClick();
     }
 }
Пример #4
0
 private void input_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.Escape)
     {
         e.Handled = true;
         Cancel.PerformClick();
     }
     else if (e.KeyData == Keys.Enter)
     {
         e.Handled = true;
         OK.PerformClick();
     }
 }
Пример #5
0
 private void ChooseFileFromDBForm_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyData == Keys.Delete)
     {
         e.Handled = true;
         Delete.PerformClick();
     }
     else if (e.KeyData == Keys.Escape)
     {
         e.Handled = true;
         Cancel.PerformClick();
     }
     else if (e.KeyData == Keys.Enter)
     {
         e.Handled = true;
         SelectButton.PerformClick();
     }
 }
Пример #6
0
 private void AccountTypeMenu(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.F1)
     {
         SavingsAcc.PerformClick();
     }
     if (e.Key == Key.F2)
     {
         CurrentAcc.PerformClick();
     }
     if (e.Key == Key.F3)
     {
         CreditCrd.PerformClick();
     }
     if (e.Key == Key.F9)
     {
         Cancel.PerformClick();
     }
 }
 public void PinPageControl(object sender, KeyEventArgs e)
 {
     Digit1.TextBoxControl(Digit2, Digit3, Digit4, e);
     if (e.Key == Key.F9)
     {
         if ((Digit1.PinFieldValidator(Digit2, Digit3, Digit4) == 1))
         {
             Enter.PerformClick();
         }
         else
         {
             StateInfo.Content = "Enter All Four Digits Of Your Pin";
         }
     }
     else if (e.Key == Key.F8)
     {
         Cancel.PerformClick();
     }
 }
Пример #8
0
 private void DataGridView1_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Insert) // && (e.Alt || e.Control || e.Shift))
     {
         //AgregarRegistro();
         bindingNavigatorAddNewItem.PerformClick();
     }
     else if (e.KeyCode == Keys.Delete) // && (e.Alt || e.Control || e.Shift))
     {
         //EliminarRegistro();
         bindingNavigatorDeleteItem.PerformClick();
     }
     else if (e.KeyCode == Keys.Escape) // && (e.Alt || e.Control || e.Shift))
     {
         Cancel.PerformClick();
     }
     //else if (e.KeyCode == Keys.Enter)
     //{
     //    //OK.PerformClick();
     //}
 }
Пример #9
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();
     }
 }