示例#1
0
        private void btiPagosConsulta_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FormCollection fc   = Application.OpenForms;
            bool           open = false;

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

            if (open == false)
            {
                frmConsultaPagos consultaPago = new frmConsultaPagos();
                consultaPago.MdiParent = this;
                consultaPago.Show();
            }
        }
        private void btiPagosConsulta_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FormCollection fc = Application.OpenForms;
            bool open = false;
            foreach (Form frm in fc)
            {
                if (frm.Name == "frmOrdenPago")
                {
                    frm.Focus();
                    open = true;
                }
            }

            if (open == false)
            {
                frmConsultaPagos consultaPago = new frmConsultaPagos();
                consultaPago.MdiParent = this;
                consultaPago.Show();
            }
        }
        private void btiPagoConsulta_ItemClick(object sender, ItemClickEventArgs e)
        {
            FormCollection fc = Application.OpenForms;
            bool open = false;
            foreach (Form frm in fc)
            {
                if (frm.Name == "frmConsultaPagos")
                {
                    frm.Focus();
                    open = true;
                }
            }

            if (open == false)
            {
                frmConsultaPagos ConsultaPagos = new frmConsultaPagos();
                ConsultaPagos.MdiParent = this;
                ConsultaPagos.Show();
            }
        }