コード例 #1
0
        private void SetSearchResults(ISearchResult result)
        {
            if (this.result != null)
            {
                this.result.View = null;
            }
            this.result = result;
            if (!listView.VirtualMode)
            {
                listView.Clear();
            }
            listView.VirtualListSize = result.Count;
            var searchResultView = new SearchResultView(this.listView);

            result.View = searchResultView;
            result.CreateColumns();
            var ctxMenuID = result.ContextMenuID;

            if (ctxMenuID > 0)
            {
                listView.ContextMenu = services
                                       .RequireService <IDecompilerShellUiService>()
                                       .GetContextMenu(ctxMenuID);
            }
        }
コード例 #2
0
 private void SetSearchResults(ISearchResult result)
 {
     if (this.result != null)
         this.result.View = null;
     this.result = result;
     if (!listView.VirtualMode)
         listView.Clear();
     listView.VirtualListSize = result.Count;
     var searchResultView = new SearchResultView(this.listView);
     result.View = searchResultView;
     result.CreateColumns();
     var ctxMenuID = result.ContextMenuID;
     if (ctxMenuID > 0)
     {
         listView.ContextMenu = services
             .RequireService<IDecompilerShellUiService>()
             .GetContextMenu(ctxMenuID);
     }
 }