public StagesRootViewModel(TreeViewItemViewModel parent, IEnumerable<StageLinkInfo> stages) : base(parent) { _children = new ObservableCollection<TreeViewItemViewModel>(stages.Select(s => new StageTreeItemViewModel(this, s))); ViewModelMediator.Current.GetEvent<StageAddedEventArgs>().Subscribe(StageAdded); }
protected TreeViewItemViewModel(TreeViewItemViewModel parent) { _parent = parent; _children = new ObservableCollection<TreeViewItemViewModel>(); _isExpanded = true; }
public StageTreeItemViewModel(TreeViewItemViewModel parent, StageLinkInfo stage) : base(parent) { _stage = stage; }