예제 #1
0
        private VariableTreeNodeViewModel(VariableTree.VariableTreeNode node, VariableTreeNodeViewModel parent)
        {
            _node     = node;
            _parent   = parent;
            _children = new ObservableCollection <VariableTreeNodeViewModel>();
            _children.Add(DummyChild);

            //            _children = new ReadOnlyCollection<VariableTreeNodeViewModel>(
//                    (from KeyValuePair<String, VariableTree.VariableTreeNode> entry in _node.children
//                     select new VariableTreeNodeViewModel(entry.Value, this))
//                     .ToList<VariableTreeNodeViewModel>());
        }
예제 #2
0
 public VariableTreeNodeViewModel(VariableTree.VariableTreeNode node)
     : this(node, null)
 {
 }