Exemplo n.º 1
0
        internal void InicializarNuevoInsumo()
        {
            /* NuevoInsumo pnlInsumo = new NuevoInsumo();
            *  pnlInsumo.Dock = DockStyle.Fill;
            *  DevExpress.XtraTab.XtraTabPage tabItem = new DevExpress.XtraTab.XtraTabPage();
            *  tabItem.Controls.Add(pnlInsumo);
            *  tabItem.Text = "Nuevo Insumo";
            *  xtraTabControl.TabPages.Add(tabItem);
            *  xtraTabControl.SelectedTabPage = tabItem;
            *  statusStrip.BackColor = Color.LightSkyBlue;*/

            if (!ContextControls.ContainsKey("PnlListaInsumos"))
            {
                PnlListaInsumos pnlInsumo = new PnlListaInsumos( );
                pnlInsumo.Dock = DockStyle.Fill;
                DevExpress.XtraTab.XtraTabPage tabItem = new DevExpress.XtraTab.XtraTabPage( );
                tabItem.Controls.Add(pnlInsumo);
                tabItem.Text = "Lista Insumos";
                xtraTabControl.TabPages.Add(tabItem);
                xtraTabControl.SelectedTabPage = tabItem;

                ContextControls.Add("PnlListaInsumos", pnlInsumo);
            }
        }
Exemplo n.º 2
0
        internal void InicializarNuevoInsumo()
        {
           /* NuevoInsumo pnlInsumo = new NuevoInsumo();
            pnlInsumo.Dock = DockStyle.Fill;
            DevExpress.XtraTab.XtraTabPage tabItem = new DevExpress.XtraTab.XtraTabPage();
            tabItem.Controls.Add(pnlInsumo);
            tabItem.Text = "Nuevo Insumo";
            xtraTabControl.TabPages.Add(tabItem);
            xtraTabControl.SelectedTabPage = tabItem;
            statusStrip.BackColor = Color.LightSkyBlue;*/

            if ( !ContextControls.ContainsKey( "PnlListaInsumos" ) )
            {
                PnlListaInsumos pnlInsumo = new PnlListaInsumos( );
                pnlInsumo.Dock = DockStyle.Fill;
                DevExpress.XtraTab.XtraTabPage tabItem = new DevExpress.XtraTab.XtraTabPage( );
                tabItem.Controls.Add( pnlInsumo );
                tabItem.Text = "Lista Insumos";
                xtraTabControl.TabPages.Add( tabItem );
                xtraTabControl.SelectedTabPage = tabItem;

                ContextControls.Add( "PnlListaInsumos" , pnlInsumo );
            }
        }