public void ApplyRestriction(long userId) { UserRestrictionState r = GetRestriction(userId); item.Visible = r != UserRestrictionState.Restricted; item.Sensitive = r != UserRestrictionState.Disabled; SubItems.ApplyRestriction(userId); }