private void btnAgregarAlumno_Click(object sender, EventArgs e) { FormTalleres fa = new FormTalleres(null); fa.FormClosed += new FormClosedEventHandler(form_Closed); fa.Show(); }
private void modificarToolStripMenuItem_Click(object sender, EventArgs e) { try { String id = dataGridView1.CurrentRow.Cells[0].Value.ToString(); Taller taller = control.consultarTaller(id); //MessageBox.Show("Reporte referente al grupo "+ grupo.codigo); FormTalleres fa = new FormTalleres(taller); fa.FormClosed += new FormClosedEventHandler(form_Closed); fa.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }