Example #1
0
        private ResultLineViewModel(ResultLine resultLine, ResultLineViewModel parentItem)
        {
            _resultLine = resultLine;
            _parentItem = parentItem;

            _subItems = new ReadOnlyCollection <ResultLineViewModel>(
                (from child in _resultLine.subItems
                 select new ResultLineViewModel(child, this))
                .ToList <ResultLineViewModel>());
        }
Example #2
0
        public ResultTreeViewModel(ResultLine rootLine)
        {
            _rootItem = new ResultLineViewModel(rootLine);

            rootCollection = new ReadOnlyCollection <ResultLineViewModel>(
                new ResultLineViewModel[]
            {
                _rootItem
            });

            //_searchCommand = new SearchFamilyTreeCommand(this);
        }