private void btiCuentasPorPagar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FormCollection fc = Application.OpenForms;
            bool open = false;
            foreach (Form frm in fc)
            {
                if (frm.Name=="frmCuentasPorPagar")
                {
                    frm.Focus();
                    open = true;
                }
            }

            if (open==false)
            {
                frmCuentasPorPagar CtasXPagar = new frmCuentasPorPagar();
                CtasXPagar.MdiParent = this;
                CtasXPagar.Show();
            }
        }
Esempio n. 2
0
        private void btiCuentasPorPagar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FormCollection fc   = Application.OpenForms;
            bool           open = false;

            foreach (Form frm in fc)
            {
                if (frm.Name == "frmCuentasPorPagar")
                {
                    frm.Focus();
                    open = true;
                }
            }

            if (open == false)
            {
                frmCuentasPorPagar CtasXPagar = new frmCuentasPorPagar();
                CtasXPagar.MdiParent = this;
                CtasXPagar.Show();
            }
        }