예제 #1
0
        private void tipoDeMovimientoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form frm = Application.OpenForms.Cast <Form>().FirstOrDefault(x => x is frmTipoMovimiento);

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