AerolineaFrba.Abm_Rol.Modificacion.seSelecciono C# (CSharp) Method

seSelecciono() public method

public seSelecciono ( string nombreRol, bool habilitado, Object funcionalidadesRol ) : void
nombreRol string
habilitado bool
funcionalidadesRol Object
return void
        public void seSelecciono(string nombreRol, bool habilitado, Object[] funcionalidadesRol)
        {
            txtRolSeleccionado.Text = nombreRol;
            txtRolSeleccionado.Enabled = true;
            txtNombre.Enabled = true;
            txtNombre.Text = nombreRol;

            lstFuncionalidadesActuales.Items.Clear();
            lstFuncionalidadesActuales.Items.AddRange(funcionalidadesRol);

            button6.Enabled = true;
            button3.Enabled = true;
            button2.Enabled = true;
            lstFuncionalidadesTotales.Enabled = true;

            checkHabilitado.Enabled = !habilitado;
            checkHabilitado.Checked = false;
            button1.Enabled = true;
        }