private void TabShow_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (TabShow.SelectedIndex == 1)
     {
         tabController.SelectTab(1);
         TabSort.SelectTab(1);
         TabFilter.SelectTab(1);
     }
     else if (TabShow.SelectedIndex == 0)
     {
         TabSort.SelectTab(0);
         tabController.SelectTab(0);
         TabFilter.SelectTab(0);
     }
 }
Exemple #2
0
        private void NavBar_AfterSelect(object sender, TreeViewEventArgs e)
        {
            switch (e.Node.Text)
            {
            case "Filter":
                TabFilter.Visible           = true;
                TabDisplay.Visible          = false;
                TabFilter.SelectedIndex     = 0;
                TabSearchEngineInfo.Visible = false;
                break;

            case "Block Rules":
            case "New Rule":
                TabFilter.Visible           = true;
                TabDisplay.Visible          = false;
                TabSearchEngineInfo.Visible = false;
                TabFilter.SelectTab(e.Node.Index);
                break;

            case "Display":
                TabFilter.Visible  = false;
                TabDisplay.Visible = true;
                LoadDisplayConfig();
                TabSearchEngineInfo.Visible = false;
                break;

            case "Search Engine":
                TabSearchEngineInfo.Visible       = true;
                TabFilter.Visible                 = false;
                TabDisplay.Visible                = false;
                TabSearchEngineInfo.SelectedIndex = 0;
                TabSelectDefaultEngine_Enter(null, null);
                break;

            case "Select":
            case "URL":
                TabSelectDefaultEngine_Enter(null, null);
                TabSearchEngineInfo_Enter(null, null);
                TabDisplay.Visible          = false;
                TabSearchEngineInfo.Visible = true;
                TabFilter.Visible           = false;
                TabSearchEngineInfo.SelectTab(e.Node.Index);
                break;
            }
        }