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

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