public override void PopulateFromKVP(List <KVP> kvps) { BasePopulateFromKVP(kvps); var lookup = FixedValue as Lookup; FixedValue = AllValues.FirstOrDefault(val => lookup.Name == val.Name); }
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(); }
public static RoofStyle FromStringValue(string stringValue) { return(AllValues.FirstOrDefault(value => value.StringValue == stringValue)); }