private void btnDocente_Click(object sender, EventArgs e) { foreach (Form fr in this.OwnedForms) { if (fr.GetType() == typeof(frmDocente)) { fr.Activate(); return; } } frmDocente frm = new frmDocente(); frm.dc = this.dc; frm.Show(this); }
private void frmGrauDocente_FormClosing(object sender, FormClosingEventArgs e) { frmDocente fr = (frmDocente)this.Owner; fr.dc[idx].gr = this.gr; }