Exemple #1
0
        private void cuentasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frm = Application.OpenForms.Cast<Form>().FirstOrDefault(x => x is frmCuenta);

            if (frm != null)
            {
                //si la instancia existe la pongo en primer plano
                frm.BringToFront();
                return;
            }
           
            frm = new frmCuenta();
            frm.MdiParent = this;
            frm.Show();
        }
Exemple #2
0
        private void cuentasToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frm = Application.OpenForms.Cast <Form>().FirstOrDefault(x => x is frmCuenta);

            if (frm != null)
            {
                //si la instancia existe la pongo en primer plano
                frm.BringToFront();
                return;
            }

            frm           = new frmCuenta();
            frm.MdiParent = this;
            frm.Show();
        }