コード例 #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)
 {
 }