Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
File: Link.cs Progetto: wlk0/OCTGN
 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));
 }