public ElseIfCaseModel(IdeCollection <IdeBaseItem> source) : base(source) //new { _case = new CaseDefinition { value = "" }; Property = (PropertyItemModel)CustomProperties.First(); BlockContainer = new BlockContainer(); BlockContainer.OnContainerChanged += (a, b) => { _case.linkList = BlockContainer.BuildTemplateBlockDef(b); }; Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action)); }
public SwitchBlockModel(IdeCollection <IdeBaseItem> source) : base(source) //new { var _conditonalDefinition = new ConditionalDefinition(); _wrapper = new LinkDefinition.LinkWrapper() { Conditional = _conditonalDefinition }; Items = new IdeCollection <IdeBaseItem>(this); Items.CollectionChanged += (a, b) => { BuildSwitchDefinitions(b); }; Property = (PropertyItemModel)CustomProperties.First(); Messenger.Default.Register <CustomPropertyChangedMessage>(this, action => CustomPropertyChanged(action)); AddCaseCommand = new RelayCommand(AddCase); AddDefaultCommand = new RelayCommand(AddDefault); }