Exemple #1
0
 private void frmProductAdjust_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         this.Close();
     }
     else if (e.KeyCode == Keys.F1)
     {
         BtnF1.PerformClick();
     }
     else if (e.KeyCode == Keys.F2)
     {
         BtnF2.PerformClick();
     }
     else if (e.KeyCode == Keys.F3)
     {
         BtnF3.PerformClick();
     }
     else if (e.KeyCode == Keys.F4)
     {
         BtnF4.PerformClick();
     }
     else if (e.KeyCode == Keys.F11)
     {
         RemoveButtonClicked();
     }
     else if (e.KeyCode == Keys.F12)
     {
         done_process();
     }
     else
     {
         return;
     }
 }
Exemple #2
0
 private void frmTransactionAdjust_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         this.Close();
     }
     else if (e.KeyCode == Keys.F1)
     {
         BtnF1.PerformClick();
     }
     else if (e.KeyCode == Keys.F2)
     {
         BtnF2.PerformClick();
     }
     else if (e.KeyCode == Keys.F3)
     {
         BtnF3.PerformClick();
     }
     else if (e.KeyCode == Keys.F11)
     {
         RemoveButtonClicked();
     }
     else if (e.KeyCode == Keys.F12)
     {
         Proceed();
     }
     return;
 }