Beispiel #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ConfirmPassword f = new ConfirmPassword(2, this);

            f.ShowDialog();
            LoadTableDList();
        }
Beispiel #2
0
        private void txtDiscount_Click(object sender, EventArgs e)
        {
            ConfirmPassword f = new ConfirmPassword(1, this);

            f.ShowDialog();
            this.Show();
            txtDiscount.Text = "" + discount;
            float total = BillDAO.Instance.GetTotalPriceByIdBill(BillDAO.Instance.GetUncheckedBillIdByTableId(idTable));

            txtCashout.Text = (total * (1 - discount / 100)).ToString("c");
        }