Пример #1
0
        // Adding this back in for merge TODO(josefl): should remove later 
        internal void SelectTab(Tab tab)
        {
            if (tab.Contextual && !tab.Visible)
                ShowContextualGroup(tab.ContextualGroupId);

            _selectedTab = tab;
            tab.SetSelectedInternal(true, true);
            OnDirtyingChange();
        }
Пример #2
0
        internal void MakeTabSelectedInternal(Tab tab)
        {
            if (!CUIUtility.IsNullOrUndefined(tab))
            {
                OnDirtyingChange();
                tab.SetSelectedInternal(true, false);
                if (!tab.Contextual)
                    SetContextualColor(ContextualColor.None);

                if (!CUIUtility.IsNullOrUndefined(_selectedTab) && _selectedTab != tab)
                    _selectedTab.SetSelectedInternal(false, false);
                _selectedTab = tab;
                MinimizedInternal = false;
            }

            // Need to make sure that we clear the last focused control when tabs are switched
            // O14:673517
            LastFocusedControl = null;
        }