示例#1
0
        private void BtnCash_Click(object sender, EventArgs e)
        {
            //hide cash and tender buttons and displays the cashout textbox
            BtnCash.Visible    = false;
            BtnEFT.Visible     = false;
            TxtCashOut.Visible = true;
            BtnPay.Visible     = true;
            TxtCashOut.Focus();

            TxtCashOut.Text = "0.00";
        }
示例#2
0
        private void BtnCoupon_Click(object sender, EventArgs e)
        {
            //enables and disables the cupon visibility options based on what needs to be displayed
            //won't allow coupon entry if there is not an order in progress
            if (listViewGrocery.Items.Count is 0)
            {
                MessageBox.Show("Start A New Order To Tender");
            }
            else
            {
                BtnCoupon.Visible     = false;
                btnLock.Visible       = false;
                btnVoid.Visible       = false;
                btnRegOptions.Visible = false;
                btnTender.Visible     = false;
                BtnEFT.Visible        = false;

                BtnEnterCoupon.Visible = true;
                TxtCashOut.Visible     = true;
                TxtCashOut.Focus();
            }
        }