private void btnModificar_Click(object sender, EventArgs e) { Materia matModi = new Materia(dgvMaterias.CurrentRow.Cells[0].Value.ToString() , Convert.ToInt32(dgvMaterias.CurrentRow.Cells[2].Value) , Convert.ToInt32(dgvMaterias.CurrentRow.Cells[3].Value) , Convert.ToInt32(dgvMaterias.CurrentRow.Cells[1].Value)); AltaModiMateria abMat = new AltaModiMateria(matModi); abMat.Show(); }
private void btnAgregar_Click(object sender, EventArgs e) { AltaModiMateria abMat = new AltaModiMateria(); abMat.Show(); }