private void button2_Click(object sender, EventArgs e) { try { if (ThanhToanDAO.Instance.thanhtoan(idhd) != 0) { XuaHD xuaHD = new XuaHD(idhd); xuaHD.Show(); listView_HoaDon.Items.Clear(); label_NV.Text = ""; label_Gio.Text = ""; label_TongTien.Text = ""; label_GiamGia.Text = ""; label_IDHD.Text = ""; idhd = null; MessageBox.Show("Đã thanh toán:", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } } catch (Exception) { MessageBox.Show("Bàn trông", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btn_Xuat_Click(object sender, EventArgs e) { XuaHD xuaHD = new XuaHD(IDHoaDon); xuaHD.Show(); }