public void SetSelectedPrim(UUID prim, string name, UUID id)
        {
            if ((!_control.IsNode(prim) && !_control.IsLink(prim)))
            {
                return;
            }
            IControlEntity entity;

            if (_control.IsNode(prim))
            {
                entity = _control.GetNode(prim);
            }
            else
            {
                entity = _control.GetLink(prim);
            }
            if (!entity.Authorize(name, id))
            {
                return;
            }

            entity.Selected = _control.ToggleGlow;
            if (!_selectedEntities.ContainsKey(name))
            {
                _selectedEntities.Add(name, entity);
            }
            else
            {
                _selectedEntities[name] = entity;
            }
        }
        public void SetSelectedPrim(UUID prim, string name, UUID id)
        {
            IControlEntity entity;

            if (_control.IsNode(prim))
            {
                entity = _control.GetNode(prim);
            }
            else
            {
                entity = _control.GetLink(prim);
            }
            if (!entity.Authorize(name, id))
            {
                return;
            }

            entity.Selected = _control.ToggleGlow;
            _selectedPrim   = entity;
        }