Пример #1
0
        private TreeViewObject(TreeViewItemModel item, TreeViewObject parent)
        {
            _Item   = item;
            _parent = parent;

            _children = new ReadOnlyCollection <TreeViewObject>(
                (from child in _Item.Children
                 select new TreeViewObject(child, this))
                .ToList <TreeViewObject>());
        }
Пример #2
0
 public TreeViewObject(TreeViewItemModel item)
     : this(item, null)
 {
 }