public frmLoadGiftCardKeyBoard(ref frmbLoyalGiftCardTender frmLoadGiftCardBalance, bool isOpenTicket, string amount, string giftCardNumber)
 {
     try
     {
         _frmLoadGiftCardBalance = frmLoadGiftCardBalance;
         _isOpenTicket           = isOpenTicket;
         _amount         = amount;
         _giftCardNumber = giftCardNumber;
         InitializeComponent();
         foreach (TextBox tb in this.Controls.OfType <TextBox>())
         {
             tb.Enter += textBox_Enter;
         }
     }
     catch (Exception ex)
     {
         _logger.WriteLogError(ex, "frmLoadGiftCardKeyBoard");
     }
 }
Exemple #2
0
        /// <summary>
        /// Open KeyBoard
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnkeyboard_Click(object sender, EventArgs e)
        {
            try
            {
                var frmGiftCard = new frmbLoyalGiftCardTender();
                frmGiftCard = this;

                this.Hide();

                frmLoadGiftCardKeyBoard frmTCBoard = new frmLoadGiftCardKeyBoard(ref frmGiftCard, _isTicketOpen, textApplyBalance.Text, txtGiftCardNumber.Text);
                frmTCBoard.ShowDialog();

                txtGiftCardNumber.Text = GiftCardNumber;
                textApplyBalance.Text  = GiftCardAmount;
            }
            catch (Exception ex)
            {
                _logger.WriteLogError(ex, "bLoyal GiftCardTender btnkeyboard_Click");
            }
        }