public void Init(List <string> rootFilePath)
    {
        for (int j = 0; j < rootFilePath.Count; j++)
        {
            bool        isFolder    = Directory.Exists(rootFilePath[j]);
            ListElement rootElement = new ListElement(new HierarchyElementData(), this, rootFilePath[j], isFolder);
            string[]    fileStrings = Directory.GetDirectories(rootFilePath[j]);

            for (int i = 0; i < fileStrings.Length; i++)
            {
                AddElement(rootElement, fileStrings[i], Directory.Exists(fileStrings[i]));
            }

            rootElement.SetSpace(0f);
            listElement.Add(rootElement);
        }
    }
Beispiel #2
0
    public void Init(List<string> rootFilePath)
    {
        for (int j = 0; j < rootFilePath.Count; j++)
        {
            bool isFolder = Directory.Exists(rootFilePath[j]);
            ListElement rootElement = new ListElement(new HierarchyElementData(), this, rootFilePath[j], isFolder);
            string[] fileStrings = Directory.GetDirectories(rootFilePath[j]);

            for (int i = 0; i < fileStrings.Length; i++)
            {
                AddElement(rootElement, fileStrings[i], Directory.Exists(fileStrings[i]));
            }
            
            rootElement.SetSpace(0f);
            listElement.Add(rootElement);
        }
    }