Пример #1
0
        public void Add(BaseExposedData exposed)
        {
            exposed.Container = this;
            var exposedProperty = exposed as ExposedProperty;

            if (exposedProperty != null)
            {
                Add(exposedProperty);
            }
            else
            {
                Add(exposed as ExposedPropertyGroup);
            }
        }
Пример #2
0
        public void SetHide(BaseExposedData property, bool state)
        {
            if (state == Hidden.Contains(property.Id))
            {
                return;
            }

            if (state)
            {
                Hidden.Add(property.Id);
            }
            else
            {
                Hidden.Remove(property.Id);
            }

            Hidden.Sort();
        }