Exemple #1
0
        public static frmGrupos GetChild(mdiPrincipal parent = null)
        {
            if (_childInstance == null)
            {
                _childInstance           = new frmGrupos();
                _childInstance.MdiParent = parent;
            }

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

            frm.Show();
        }
Exemple #3
0
        private void gruposToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmGrupos frm = frmGrupos.GetChild(this);

            frm.Show();
        }