Пример #1
0
        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);
        }
Пример #2
0
        private void frmGrauDocente_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmDocente fr = (frmDocente)this.Owner;

            fr.dc[idx].gr = this.gr;
        }