private void butxoa_Click(object sender, EventArgs e) { DialogResult key = MessageBox.Show("Bạn Chăc Chắn Muốn Xóa", "Cảnh Báo", MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (key == System.Windows.Forms.DialogResult.Yes) { HoaDon_BLL.HoaDon_Delete(txtSoHD.Text); butshow_Click(sender, e); } }
private void butxoahd_Click(object sender, EventArgs e) { var HoaDon_BLL = new HoaDon_BLL(); HoaDon_BLL.HoaDon_Delete(txtsoHD.Text); foreach (DataRow dr in CTHD.Rows) { var CTHD_BLL = new CTHD_BLL(); dataCTHD.DataSource = CTHD_BLL.CTHD_Delete(dr[0].ToString()); dataCTHD.DataSource = CTHD_BLL.CTHD_SelectPROVIP(); } CTHD.Clear(); CTHD_HOADON_Load(sender, e); }
private void btnHuyHD_Click_1(object sender, EventArgs e) { dgvCTHD.DataSource = hdbll.HoaDon_Delete(cbxThoiGianLap.SelectedValue.ToString()); HienNgayNhap(); }