/// <summary> /// Adds items to the tree view for each build file that exists /// in all the solution's subprojects. /// </summary> /// <param name="solution">A solution containing projects.</param> public void AddSolution(ISolution solution) { if (InvokeRequired) { AddSolutionInvoker invoker = new AddSolutionInvoker(AddSolution); Invoke(invoker); } else { foreach (IProject project in solution.Projects) { AddProject(project); } } }