private void btnXoaNV_Click(object sender, EventArgs e) { DBNhanVien dbNV = new DBNhanVien(); dbNV.removeNewStaf(txtMaNV.Text); resetFeilds(); }
private void btnDeleteNV_Click(object sender, EventArgs e) { if (txtMaNv.Text.Equals("")) { MessageBox.Show(this, "Nhap ma nhan vien", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } DBNhanVien dbnv = new DBNhanVien(); dbnv.removeNewStaf(txtMaNv.Text); dbnv.updateGridData(dataGridNV); }