void ProjectServiceSolutionChanged(object sender, EventArgs e) { classBrowserTreeView.Nodes.Clear(); foreach (IProject project in ProjectService.OpenSolution.Projects) { if (project is MissingProject || project is UnknownProject) { continue; } ProjectNodeBuilders.AddProjectNode(classBrowserTreeView, project); } }
void ProjectServiceSolutionChanged(object sender, EventArgs e) { classBrowserTreeView.BeginUpdate(); classBrowserTreeView.Nodes.Clear(); if (ProjectService.OpenSolution != null) { foreach (IProject project in ProjectService.OpenSolution.Projects) { if (project is MissingProject || project is UnknownProject) { continue; } ProjectNodeBuilders.AddProjectNode(classBrowserTreeView, project); } classBrowserTreeView.Sort(); } classBrowserTreeView.EndUpdate(); }