public SubNodeWithDictionaryOfSubNodes(Node container)
 {
     _container = container;
 }
コード例 #2
0
 public void Reset()
 {
     _currentNode = _initialNode;
 }
コード例 #3
0
 public void Up()
 {
     if (_currentNode.UID == _initialNode.UID)
         return;
     _currentNode = _currentNode.Parent;
 }
コード例 #4
0
 public void Down(string key)
 {
     _currentNode = _currentNode.GetSubNode(key);
 }
コード例 #5
0
 public void Down(int key)
 {
     _currentNode = _currentNode.GetSubNode(key);
 }
コード例 #6
0
 public void CreateSubNodeAndDown(int key)
 {
     _currentNode = _currentNode.CreateSubNode(key);
 }
コード例 #7
0
 public RepoBrowser(Node initialNode)
 {
     _initialNode = initialNode;
     _currentNode = _initialNode;
 }
コード例 #8
0
 public SubNodeWithListOfSubNodes(Node container)
 {
     _container = container;
 }
コード例 #9
0
 public static Node CreateNewNode(Node parent)
 {
     var result = new Node(parent) {UID = _index++};
     return result;
 }
コード例 #10
0
 private Node(Node parent)
 {
     Parent = parent;
     Data = new StringData();
 }