public DeckSectionItemModel(IdeCollection <IdeBaseItem> source) : base(source) // new item { _deckSection = new DeckSection(); SelectedGroup = (GroupItemModel)Groups.First(); Name = "New Section"; // Messenger.Default.Register<GroupChangedMessage>(this, action => UpdateDeckSectionDef(action)); }
public MatchModel(IdeCollection <IdeBaseItem> source) : base(source) //new match { _match = new Property() { }; Property = (PropertyItemModel)CustomProperties.First(); Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action)); }
public TextLinkPropertyModel(IdeCollection <IdeBaseItem> source) : base(source) //new { _property = new Property() { Value = "" }; Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action)); ActiveProperty = (PropertyItemModel)CustomProperties.First(); }
public PackagePropertyModel(IdeCollection <IdeBaseItem> src) : base(src) // new item { PropertyDef = new PickProperty(); ActiveProperty = (PropertyItemModel)CustomProperties.First(); Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action)); }