Exemplo n.º 1
0
        private void btiMedioPago_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)
            {
                frmMedioPago medioPago = new frmMedioPago();
                medioPago.MdiParent = this;
                medioPago.Show();
            }
        }
        private void btiMedioPago_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)
            {
                frmMedioPago medioPago = new frmMedioPago();
                medioPago.MdiParent = this;
                medioPago.Show();
            }
        }