/// <summary>
        ///		Obtiene recursivamente los proyectos de la solución
        /// </summary>
        internal ProjectsModelCollection GetAllProjects(SolutionModel solution)
        {
            ProjectsModelCollection projects = new ProjectsModelCollection(solution);

            // Añade los proyectos de esta carpeta
            foreach (SolutionFolderModel folder in this)
            {
                projects.AddRange(folder.GetAllProjects());
            }
            // Devuelve los projectos
            return(projects);
        }
 public SolutionFolderModel(SolutionModel solution)
 {
     Solution = solution;
     Folders  = new SolutionFolderModelCollection();
     Projects = new ProjectsModelCollection(solution);
 }
Esempio n. 3
0
 public ProjectModel(SolutionModel solution, Definitions.ProjectDefinitionModel definition, string fileName) : base(solution, fileName)
 {
     Solution   = solution;
     Definition = definition;
 }
 public ProjectsModelCollection(SolutionModel solution)
 {
     Solution = solution;
 }