private void btnEliminarEsp_Click(object sender, EventArgs e) { MateriaComponent materiaComponent = new MateriaComponent(); materiaComponent.Delete(int.Parse(mgEspecialidades.CurrentRow.Cells[0].Value.ToString())); ValidadoresComponent.Baja("Materia", this); llenargrilla(); }
private void btnEliminarMateria_Click(object sender, EventArgs e) { if (verificarCampoMateria()) { MateriaComponent materiaComponent = new MateriaComponent(); materiaComponent.Delete(int.Parse(mgMateria.CurrentRow.Cells[0].Value.ToString())); llenarGrillaMateria(); txtMateria.Text = ""; } }