Пример #1
0
        public static frmGrupos GetChild(mdiPrincipal parent = null)
        {
            if (_childInstance == null)
            {
                _childInstance           = new frmGrupos();
                _childInstance.MdiParent = parent;
            }

            return(_childInstance);
        }
Пример #2
0
        private void btnGrupos_Click(object sender, EventArgs e)
        {
            frmGrupos frm = frmGrupos.GetChild((SGP.mdiPrincipal) this.MdiParent);

            frm.Show();
        }
Пример #3
0
        private void gruposToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmGrupos frm = frmGrupos.GetChild(this);

            frm.Show();
        }