示例#1
0
        private void togglePanels(string userControlPanel)
        {
            colorBtn();
            this.formHome.panelMain.Controls.Clear();
            switch (userControlPanel)
            {
            case "general":
                this.uCGeneral = new Vista.Configuracion.UCGeneral();
                this.formHome.panelMain.Controls.Add(this.uCGeneral);
                this.uCGeneral.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.uCGeneral.Location = new System.Drawing.Point(0, 0);
                this.uCGeneral.Name     = "uCGeneral";
                this.uCGeneral.Size     = new System.Drawing.Size(724, 485);
                this.uCGeneral.TabIndex = 1;
                break;

            case "perfil":
                this.uCPerfil = new Vista.Configuracion.UCPerfil();
                this.formHome.panelMain.Controls.Add(this.uCPerfil);
                this.uCPerfil.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.uCPerfil.Location = new System.Drawing.Point(0, 0);
                this.uCPerfil.Name     = "uCEmpresas";
                this.uCPerfil.Size     = new System.Drawing.Size(724, 485);
                this.uCPerfil.TabIndex = 1;
                break;

            case "roles":
                this.uCRoles = new Vista.Configuracion.UCRoles();
                this.formHome.panelMain.Controls.Add(this.uCRoles);
                this.uCRoles.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.uCRoles.Location = new System.Drawing.Point(0, 0);
                this.uCRoles.Name     = "uCRoles";
                this.uCRoles.Size     = new System.Drawing.Size(724, 485);
                this.uCRoles.TabIndex = 1;
                break;

            case "usuarios":
                this.uCUsuarios = new Vista.Configuracion.UCUsuarios();
                this.formHome.panelMain.Controls.Add(this.uCUsuarios);
                this.uCUsuarios.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.uCUsuarios.Location = new System.Drawing.Point(0, 0);
                this.uCUsuarios.Name     = "uCUsuarios";
                this.uCUsuarios.Size     = new System.Drawing.Size(724, 485);
                this.uCUsuarios.TabIndex = 1;
                break;

            default:
                break;
            }
        }
示例#2
0
        private void togglePanels(String userControlPanel)
        {
            colorBtn();
            this.panelAsideMain.Controls.Clear();
            switch (userControlPanel)
            {
            case "config":
                this.uCConfig = new Vista.Navegacion.UCConfig(this);
                this.panelAsideMain.Controls.Add(this.uCConfig);
                this.uCConfig.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.uCConfig.Location = new System.Drawing.Point(0, 0);
                this.uCConfig.Name     = "uCConfig";
                this.uCConfig.Size     = new System.Drawing.Size(724, 485);
                this.uCConfig.TabIndex = 1;
                break;

            case "cruds":
                this.uCCruds = new Vista.Navegacion.UCCruds(this);
                this.panelAsideMain.Controls.Add(this.uCCruds);
                this.uCCruds.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.uCCruds.Location = new System.Drawing.Point(0, 0);
                this.uCCruds.Name     = "uCCruds";
                this.uCCruds.Size     = new System.Drawing.Size(724, 485);
                this.uCCruds.TabIndex = 1;
                break;

            case "movimientos":
                this.uCMovimientos = new Vista.Navegacion.UCMovimientos(this);
                this.panelAsideMain.Controls.Add(this.uCMovimientos);
                this.uCMovimientos.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.uCMovimientos.Location = new System.Drawing.Point(0, 0);
                this.uCMovimientos.Name     = "uCConcepto";
                this.uCMovimientos.Size     = new System.Drawing.Size(724, 485);
                this.uCMovimientos.TabIndex = 1;
                break;

            case "reportes":
                this.uCReportes = new Vista.Navegacion.UCReportes(this);
                this.panelAsideMain.Controls.Add(this.uCReportes);
                this.uCReportes.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.uCReportes.Location = new System.Drawing.Point(0, 0);
                this.uCReportes.Name     = "uCTipoDocumento";
                this.uCReportes.Size     = new System.Drawing.Size(724, 485);
                this.uCReportes.TabIndex = 1;
                break;

            case "perfil":
                this.panelMain.Controls.Clear();
                this.uCPerfil = new Vista.Configuracion.UCPerfil();
                this.panelMain.Controls.Add(this.uCPerfil);
                this.uCPerfil.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.uCPerfil.Location = new System.Drawing.Point(0, 0);
                this.uCPerfil.Name     = "uCPerfil";
                this.uCPerfil.Size     = new System.Drawing.Size(724, 485);
                this.uCPerfil.TabIndex = 1;
                break;

            case "home":
                this.uCHome = new Vista.UCHome();
                this.panelMain.Controls.Add(this.uCHome);
                this.uCHome.Dock     = System.Windows.Forms.DockStyle.Fill;
                this.uCHome.Location = new System.Drawing.Point(0, 0);
                this.uCHome.Name     = "uCHome";
                this.uCHome.Size     = new System.Drawing.Size(724, 485);
                this.uCHome.TabIndex = 1;
                break;

            default:
                break;
            }
        }