Beispiel #1
0
 private void tab_SelectedIndexChanged(object sender, EventArgs e)
 {
     // Sets current tab and selects appropriate tab title
     if (tab.SelectedTab == tabHome)
     {
         CurrentTab = tabHome; ControlExtensions.SelectTabTitle(titleHome);
     }
     else if (tab.SelectedTab == tabSearch)
     {
         CurrentTab = tabSearch; ControlExtensions.SelectTabTitle(titleSearch);
     }
     else if (tab.SelectedTab == tabDiscover)
     {
         CurrentTab = tabDiscover; ControlExtensions.SelectTabTitle(titleDiscover);
     }
     else if (tab.SelectedTab == tabSubmit)
     {
         CurrentTab = tabDiscover; ControlExtensions.SelectTabTitle(titleSubmit);
     }
     else if (tab.SelectedTab == tabSettings)
     {
         CurrentTab = tabSettings; ControlExtensions.SelectTabTitle(titleSettings);
     }
     else if (tab.SelectedTab == tabInformation)
     {
         CurrentTab = tabInformation; ControlExtensions.SelectTabTitle(titleInformation);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Sets current tab and selects appropriate tab title
        /// </summary>
        private void tab_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (tab.SelectedTab == tabHome)
            {
                ControlExtensions.SelectTabTitle(titleHome);
            }
            else if (tab.SelectedTab == tabSearch)
            {
                ControlExtensions.SelectTabTitle(titleSearch);
            }
            else if (tab.SelectedTab == tabDiscover)
            {
                ControlExtensions.SelectTabTitle(titleDiscover);
            }
            else if (tab.SelectedTab == tabSubmit)
            {
                ControlExtensions.SelectTabTitle(titleSubmit);
            }
            else if (tab.SelectedTab == tabSettings)
            {
                ControlExtensions.SelectTabTitle(titleSettings); LoadUserSettings();
            }
            else if (tab.SelectedTab == tabInformation)
            {
                ControlExtensions.SelectTabTitle(titleInformation);
            }

            CurrentTab = tab.SelectedTab;
        }