示例#1
0
        public static T Map <T>(this IDictionary <string, string> preValues)
            where T : class, new()
        {
            var mapped = PreValueMapper.Map(new T(), preValues);

            return(mapped);
        }
        public override IPickerSettings GetSettings(PublishedPropertyType propertyType)
        {
            var preValues = DataTypeHelper.GetPreValues(propertyType.DataTypeId);

            var settings = new MediaPickerSettings();

            return(PreValueMapper.Map(settings, preValues));
        }
示例#3
0
        private IPickerSettings GetSettings(PublishedPropertyType propertyType)
        {
            var preValues = DataTypeHelper.GetPreValues(propertyType.DataTypeId);

            var settings = new NestedContentSettings();

            return(PreValueMapper.Map(settings, preValues));
        }