Example #1
0
        private void btiPagos_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)
            {
                frmPagos pago = new frmPagos();
                pago.MdiParent = this;
                pago.Show();
            }
        }
        private void btiPagos_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)
            {
                frmPagos pago = new frmPagos();
                pago.MdiParent = this;
                pago.Show();
            }
        }
        private void btiPagos_ItemClick(object sender, ItemClickEventArgs e)
        {
            FormCollection fc = Application.OpenForms;
            bool open = false;
            foreach (Form frm in fc)
            {
                if (frm.Name == "frmPagos")
                {
                    frm.Focus();
                    open = true;
                }
            }

            if (open == false)
            {
                frmPagos Pagos = new frmPagos();
                Pagos.MdiParent = this;
                Pagos.Show();
            }
        }