Ejemplo n.º 1
0
        public SearchResultDrawer(SearchResultTabType tabType)
        {
            this.m_tabType = tabType;
            DataItemMgr itemMgr = new DataItemMgr();

            base.Init(itemMgr);
        }
Ejemplo n.º 2
0
 protected override void DrawEx()
 {
     TnEditorGUIUtil.DrawSeparator();
     if (this.m_tabType == SearchResultTabType.ResultsInFolder)
     {
         this.DrawDetailsButton();
         return;
     }
     SearchResultTabType arg_1D_0 = this.m_tabType;
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
        public SearchResultTab GetTab(SearchResultTabType tabType)
        {
            int tabIndex = this.TabTypeToTabIndex(tabType);

            return(this.GetTab(tabIndex));
        }
Ejemplo n.º 6
0
        public void SetCurTab(SearchResultTabType tabType)
        {
            int curTab = this.TabTypeToTabIndex(tabType);

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