예제 #1
0
        public void LoadProperties(dynamic value)
        {
            DesignerExtensions.SetSimplePropertiesFromInstance(_simpleProperties, value);
            var items = (value.Items as IEnumerable);

            if (items != null)
            {
                _collectionProperties["Items"].Items = items.OfType <dynamic>().ToList();
            }
        }
        public void LoadProperties(dynamic value)
        {
            DesignerExtensions.SetSimplePropertiesFromInstance(_simpleProperties, value);

            var generalProperties = (value.GeneralProperties as IEnumerable);

            if (generalProperties != null)
            {
                _collectionProperties["GeneralProperties"].Items = generalProperties.OfType <dynamic>().ToList();
            }

            var additionalProperties = (value.AdditionalProperties as IEnumerable);

            if (additionalProperties != null)
            {
                _collectionProperties["AdditionalProperties"].Items = additionalProperties.OfType <dynamic>().ToList();
            }
        }
예제 #3
0
 public void LoadProperties(dynamic value)
 {
     DesignerExtensions.SetSimplePropertiesFromInstance(_simpleProperties, value);
 }