예제 #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 button1_Click(object sender, EventArgs e)
        {
            UCRoles grps = new UCRoles();

            ISE.UILibrary.Utils.UIUtils.SetFrmTrans(grps, "نقش ها", FormBorderStyle.Sizable);
        }