private void BtnCashier_Click(object sender, EventArgs e) { if (info.Give < 0) { MessageBox.Show("Khách chưa đưa đủ tiền"); return; } isConfirm = true; this.Close(); DatabaseController.Insert_Bill(info); }
private void BtnCashier_Click(object sender, EventArgs e) { if (info.Give < 0) { MessageBox.Show(NotEnougnMOney); return; } isConfirm = true; if (PrintPDF.Instance.createBill(info)) { this.Close(); DatabaseController.Insert_Bill(info); Console.WriteLine("Add bill to database success"); } }