예제 #1
0
        private static IEnumerable <ControlMappingEntity> GetProperties(Control control)
        {
            var attributeValue = GetAttributeValue(control, UIModelSettings.PropertyAttribute);

            if (!String.IsNullOrWhiteSpace(attributeValue))
            {
                var controlEntities = ParseProperties(attributeValue);
                foreach (var propertyEntity in controlEntities)
                {
                    var mappingEntity = new ControlMappingEntity(propertyEntity, control);
                    yield return(mappingEntity);
                }
            }
        }
예제 #2
0
 public static void FillControlProperty(ControlMappingEntity entity, Object model)
 {
     FillControlProperty(entity, model, entity.TargetControl);
 }