private void btnChon_Click(object sender, EventArgs e) { if (Bill.TotalByBill(BillID) > Customer.GetWallet(Convert.ToInt32(txtMaKH.Text))) { MessageBox.Show("Ví không đủ tiền"); } else { Bill.AddCustomerToBill(Convert.ToInt32(txtMaKH.Text), BillID); Bill.ThanhToan(Bill.TotalByBill(BillID), Convert.ToInt32(txtMaKH.Text)); MessageBox.Show("Thanh toán thành công"); Report rp = new Report(BillID); rp.ShowDialog(); } }