Beispiel #1
0
        public HTFileNode(string path)
        {
            this.path = path;
            children  = new Dictionary <string, HTFileNode>();

            if (!IsLeaf())
            {
                for (IEnumerator <string> i = Directory.EnumerateFileSystemEntries(path).GetEnumerator(); i.MoveNext();)
                {
                    HTFileNode child = new HTFileNode(i.Current);
                    AddChild(child);
                }
            }
        }
Beispiel #2
0
        public HTFileNode(string path)
        {
            this.path = path;
            children = new Dictionary<string, HTFileNode>();

            if (!IsLeaf())
            {
                for (IEnumerator<string> i = Directory.EnumerateFileSystemEntries(path).GetEnumerator(); i.MoveNext(); )
                {
                    HTFileNode child = new HTFileNode(i.Current);
                    AddChild(child);
                }
            }
        }
Beispiel #3
0
 protected void AddChild(HTFileNode child)
 {
     children.Add(child.GetName(), child);
 }
Beispiel #4
0
 protected void AddChild(HTFileNode child)
 {
     children.Add(child.GetName(), child);
 }