예제 #1
0
 private void RecreateTreeOfProjects(TeamCityProject project, TeamCityProject[] allProjects)
 {
     project.SubProjects = allProjects.Where(i => i.ParentProjectId == project.Id).ToList();
     foreach (var subProject in project.SubProjects)
     {
         RecreateTreeOfProjects(subProject, allProjects);
     }
 }
예제 #2
0
 private TeamCityProject[] RecreateTreeOfProjects(TeamCityProject[] allProjects)
 {
     var roots = allProjects.Where(i => i.ParentProjectId == null).ToArray();
     foreach (var project in roots)
     {
         RecreateTreeOfProjects(project, allProjects);
     }
     return roots;
 }