コード例 #1
0
		public TreeNode AddProjectNode(ExtTreeView classBrowser, IProject project)
		{
			ProjectNode prjNode = new ProjectNode(project);
			prjNode.AddTo(classBrowser);
			classBrowser.Sort();
			return prjNode;
		}
コード例 #2
0
 public void StartSearch()
 {
     if (searchTerm.Length == 0)
     {
         CancelSearch();
         return;
     }
     if (!inSearchMode)
     {
         foreach (TreeNode node in classBrowserTreeView.Nodes)
         {
             oldNodes.Add(node);
         }
         inSearchMode = true;
         previousNodes.Clear();
         nextNodes.Clear();
         UpdateToolbars();
     }
     classBrowserTreeView.BeginUpdate();
     classBrowserTreeView.Nodes.Clear();
     if (ProjectService.OpenSolution != null)
     {
         foreach (IProject project in ProjectService.OpenSolution.Projects)
         {
             IProjectContent projectContent = ParserService.GetProjectContent(project);
             if (projectContent != null)
             {
                 foreach (IClass c in projectContent.Classes)
                 {
                     if (c.Name.ToUpper().StartsWith(searchTerm))
                     {
                         ClassNodeBuilders.AddClassNode(classBrowserTreeView, project, c);
                     }
                 }
             }
         }
     }
     if (classBrowserTreeView.Nodes.Count == 0)
     {
         ExtTreeNode notFoundMsg = new ExtTreeNode();
         notFoundMsg.Text = ResourceService.GetString("MainWindow.Windows.ClassBrowser.NoResultsFound");
         notFoundMsg.AddTo(classBrowserTreeView);
     }
     classBrowserTreeView.Sort();
     classBrowserTreeView.EndUpdate();
 }
コード例 #3
0
        public TreeNode AddProjectNode(ExtTreeView classBrowser, IProject project)
        {
            ProjectNode prjNode = new ProjectNode(project);

            prjNode.AddTo(classBrowser);
            classBrowser.Sort();
            return(prjNode);
        }