Example #1
0
        public SearchResultDrawer(SearchResultTabType tabType)
        {
            this.m_tabType = tabType;
            DataItemMgr itemMgr = new DataItemMgr();

            base.Init(itemMgr);
        }
Example #2
0
 protected override void DrawEx()
 {
     TnEditorGUIUtil.DrawSeparator();
     if (this.m_tabType == SearchResultTabType.ResultsInFolder)
     {
         this.DrawDetailsButton();
         return;
     }
     SearchResultTabType arg_1D_0 = this.m_tabType;
 }
        public void SetResults(SearchResultTabType tabType, List <SearchResult> results)
        {
            SearchResultTab tab = this.GetTab(tabType);

            if (tab == null)
            {
                return;
            }
            tab.Drawer.SetResults(results, false);
            tab.Drawer.SelectResult(0);
        }
        private int TabTypeToTabIndex(SearchResultTabType tabType)
        {
            int result = -1;

            for (int i = 0; i < this.m_tabs.Count; i++)
            {
                if (this.m_tabs[i].Type == tabType)
                {
                    result = i;
                    break;
                }
            }
            return(result);
        }
        public SearchResultTab GetTab(SearchResultTabType tabType)
        {
            int tabIndex = this.TabTypeToTabIndex(tabType);

            return(this.GetTab(tabIndex));
        }
        public void SetCurTab(SearchResultTabType tabType)
        {
            int curTab = this.TabTypeToTabIndex(tabType);

            this.SetCurTab(curTab);
        }
 public void ShowTab(SearchResultTabType tabType, List <SearchResult> results)
 {
     this.SetCurTab(tabType);
     this.SetResults(tabType, results);
 }
Example #8
0
 public SearchResultTab(SearchResultTabType tabType, string title)
 {
     this.m_type   = tabType;
     this.m_title  = title;
     this.m_drawer = new SearchResultDrawer(tabType);
 }