Пример #1
0
        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));
        }
Пример #2
0
 public MatchModel(IdeCollection <IdeBaseItem> source) : base(source)  //new match
 {
     _match = new Property()
     {
     };
     Property = (PropertyItemModel)CustomProperties.First();
     Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action));
 }
Пример #3
0
Файл: Link.cs Проект: wlk0/OCTGN
 public TextLinkPropertyModel(IdeCollection <IdeBaseItem> source) : base(source) //new
 {
     _property = new Property()
     {
         Value = ""
     };
     Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action));
     ActiveProperty = (PropertyItemModel)CustomProperties.First();
 }
Пример #4
0
 public PackagePropertyModel(IdeCollection <IdeBaseItem> src) : base(src) // new item
 {
     PropertyDef    = new PickProperty();
     ActiveProperty = (PropertyItemModel)CustomProperties.First();
     Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action));
 }