예제 #1
0
        public override void PopulateFromKVP(List <KVP> kvps)
        {
            BasePopulateFromKVP(kvps);
            var lookup = FixedValue as Lookup;

            FixedValue = AllValues.FirstOrDefault(val => lookup.Name == val.Name);
        }
예제 #2
0
        public override void PopulateFromKVP(List <KVP> kvps)
        {
            BasePopulateFromKVP(kvps);
            var lookup = FixedValue as PickList;

            FixedValue = AllValues.FirstOrDefault(val => lookup.Name == val.Name);
            // Values = ((string)kvps.First(kvp => kvp.Key == "values").Value).Split(new string[] { "||" }, StringSplitOptions.RemoveEmptyEntries);
            // SelectionStyle = kvps.First(kvp => kvp.Key == "selectionstyle").Value.ToString();
        }
예제 #3
0
 public static RoofStyle FromStringValue(string stringValue)
 {
     return(AllValues.FirstOrDefault(value => value.StringValue == stringValue));
 }