示例#1
0
 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);
     }
 }
示例#2
0
 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();
 }