예제 #1
0
 public static UsuariosIndex Instncia()
 {
     if (frmInst == null || frmInst.IsDisposed == true)
     {
         frmInst = new UsuariosIndex();
     }
     frmInst.BringToFront();
     return(frmInst);
 }
예제 #2
0
        private void Index()
        {
            UsuariosIndex index = null;

            index           = UsuariosIndex.Instncia();
            index.MdiParent = MdiAdmin.ActiveForm;
            index.Show();
            this.Close();
        }
예제 #3
0
        private void usuariosToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            UsuariosIndex index = null;

            index           = UsuariosIndex.Instncia();
            index.MdiParent = this;
            index.Show();
            Form frm = this.MdiChildren.FirstOrDefault(x => x is UsuarioEditar || x is UsuariosNuevo);

            if (frm != null)
            {
                frm.Close();
            }
        }