Exemple #1
0
 private void gridList_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Delete)
     {
         Delete();
     }
     else if ((Control.ModifierKeys & Keys.Alt) != 0 && e.KeyCode == Keys.U)
     {
         var frmQuantityUpdate = new frmQuantityUpdate(posTransactionProductID);
         frmQuantityUpdate.OnProductSelected += frmQuantityUpdate_OnProductSelected;
         frmQuantityUpdate.ShowDialog();
     }
 }
Exemple #2
0
        void CheckKeyDown(Keys e)
        {
            switch (e)
            {
            case Keys.F2:

                NewTransaction();
                break;

            case Keys.F3:
                txtProductName.Focus();
                break;

            case Keys.F4:
                txtQuantity.Focus();
                break;
            }
            if ((Control.ModifierKeys & Keys.Alt) != 0 && e == Keys.U)
            {
                var frmQuantityUpdate = new frmQuantityUpdate(posTransactionProductID);
                frmQuantityUpdate.OnProductSelected += frmQuantityUpdate_OnProductSelected;
                frmQuantityUpdate.ShowDialog();
            }
        }