private void btnAdd_Click(object sender, EventArgs e) { ConfirmPassword f = new ConfirmPassword(2, this); f.ShowDialog(); LoadTableDList(); }
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"); }