private void Product_Del_Button_Click(object sender, EventArgs e) { int item = Product_DataGridView.CurrentCell.RowIndex; data.Xoa("SANPHAM", "MaSP", Product_DataGridView.Rows[item].Cells[0].Value.ToString()); }
private void Staff_Del_Button_Click(object sender, EventArgs e) // xóa { int check = Staff_DataGridView.CurrentCell.RowIndex; data.Xoa("NHANVIEN", "MaNV", Staff_DataGridView.Rows[check].Cells[0].Value.ToString()); }
private void Bill_Del_Button_Click(object sender, EventArgs e) { int item = Bill_DataGridView.CurrentCell.RowIndex; data.Xoa("HOADON", "MaHD", Bill_DataGridView.Rows[item].Cells[0].Value.ToString()); }
private void Customer_Del_Button_Click(object sender, EventArgs e) { int check = Customer_DataGridView.CurrentCell.RowIndex; data.Xoa("[KHACHHANG]", "MaKH", Customer_DataGridView.Rows[check].Cells[0].Value.ToString()); }