Exemplo n.º 1
0
 /// <summary>
 /// Конструктор
 /// </summary>
 /// <param name="path"></param>
 /// <param name="parent"></param>
 public SolutionFolder(string path, SolutionElementBase parent)
     : base(path, parent)
 {
     parentSolutionElement = parent;
     subFolders            = new List <SolutionFolder>();
     projects = new List <Project>();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Загрузка проекта с Xml документа
        /// </summary>
        /// <param name="parent"></param>
        /// <param name="projElement"></param>
        /// <returns></returns>
        private static Project LoadProjectFromXmlDocument(SolutionElementBase parent, XmlNode projElement, Solution sol)
        {
            string path = projElement.Attributes["path"].InnerText;

            if ((string.IsNullOrEmpty(path) == false) && (path[0] == '\\'))
            {
                path = path.Substring(1);
            }
            path = System.IO.Path.Combine(parent.Path, path);

            Project proj = Project.LoadProjectFromXml(parent, path);

            return(proj);
        }