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>()); }
public VariableTreeNodeViewModel(VariableTree.VariableTreeNode node) : this(node, null) { }