private void btnDelete_Click(object sender, EventArgs e) { string id = dgvData.CurrentRow.Cells[0].FormattedValue.ToString().Trim(); switch (content) { case "NhanVien": NhanVien.DeleteNhanVien(id); LoadToDataGridView(); break; case "HangHoa": HangHoa.DeleteHangHoa(id); LoadToDataGridView(); break; } }