示例#1
0
        /// <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);
        }
示例#2
0
 public ProjectModel(SolutionModel solution)
 {
     // Inicializa los objetos
     Solution = solution;
     File     = new FileModel(this);
     // Inicializa los valores predeterminados
     AddWebTitle      = true;
     WebType          = WebDefinitionType.Web;
     ItemsPerCategory = 5;
     ItemsPerSiteMap  = 50;
     MaxWidthImage    = 400;
     ThumbsWidth      = 200;
     //EBookPages = new eBooks.eBookPagesCollection();
 }
 public SolutionFolderModel(SolutionModel solution)
 {
     Solution = solution;
     Projects = new ProjectsModelCollection(solution);
 }
示例#4
0
 public ProjectsModelCollection(SolutionModel solution)
 {
     Solution = solution;
 }