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); } } }
public static void FillControlProperty(ControlMappingEntity entity, Object model) { FillControlProperty(entity, model, entity.TargetControl); }