public MatchModel(Property property, IdeCollection <IdeBaseItem> source) : base(source) //load match { _match = property; _property = (PropertyItemModel)CustomProperties.FirstOrDefault(x => ((PropertyItemModel)x)._property.Name == _match.Name); Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action)); }
public PackagePropertyModel(PickProperty p, IdeCollection <IdeBaseItem> src) : base(src) // loading item { PropertyDef = p; ActiveProperty = (PropertyItemModel)CustomProperties.FirstOrDefault(x => ((PropertyItemModel)x)._property == PropertyDef.Property); Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action)); }
public TextLinkPropertyModel(Property prop, IdeCollection <IdeBaseItem> source) : base(source) //load { _property = prop; _activeProperty = (PropertyItemModel)CustomProperties.FirstOrDefault(x => ((PropertyItemModel)x)._property.Name == _property.Name); Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action)); }