Пример #1
0
        /// <summary>
        /// Returns a list of referenced folders located under the specified path.
        /// </summary>
        public string[] GetFolderList(string path)
        {
            // Make sure that the path we are looking in exists.
            FolderEntry folder = projectReferencesTable.LocateFolderByPath(path);

            if (folder == null)
            {
                return(new string[0]);
            }

            return(folder.FolderList());
        }
Пример #2
0
        /// <summary>
        /// Returns all folders in the specified path.
        /// </summary>
        public string[] GetFolderList(string path)
        {
            // Get the references.
            string[]      results     = references.GetFolderList(path);
            List <string> resultsList = new List <string>(results);

            // Add all project references from the template tag list (if they aren't already in the list).
            FolderEntry entry = templates.TemplateTagHierarchy.LocateFolderByPath(path);

            if (entry != null)
            {
                resultsList.AddRange(entry.FolderList());
            }
            return(resultsList.ToArray());
        }