private void btnXacNhan_Click(object sender, EventArgs e) { string err = ""; if (dbHoaDon.ThanhToan(frmMain.maHD, ref err)) { MessageBox.Show("Thanh toán thành công!"); thanhToan = true; this.Close(); } else { MessageBox.Show(err, "Đã có lỗi xãy ra!"); } }