Example #1
0
        private void _tabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e.OriginalSource != _tabControl)
            {
                return;
            }

            if (_tabControl.SelectedItem == _storeUploadTabItem)
            {
                this.SelectedTab = StoreControlTabType.Upload;
            }
            else if (_tabControl.SelectedItem == _storeDownloadTabItem)
            {
                this.SelectedTab = StoreControlTabType.Download;
            }
            else if (_tabControl.SelectedItem == _libraryTabItem)
            {
                this.SelectedTab = StoreControlTabType.Library;
            }
            else
            {
                this.SelectedTab = 0;
            }

            _mainWindow.Title = string.Format("Amoeba {0}", _serviceManager.AmoebaVersion);
        }
        private void _tabControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (e.OriginalSource != _tabControl) return;

            if (_tabControl.SelectedItem == _storeUploadTabItem)
            {
                this.SelectedTab = StoreControlTabType.Upload;
            }
            else if (_tabControl.SelectedItem == _storeDownloadTabItem)
            {
                this.SelectedTab = StoreControlTabType.Download;
            }
            else if (_tabControl.SelectedItem == _libraryTabItem)
            {
                this.SelectedTab = StoreControlTabType.Library;
            }
            else
            {
                this.SelectedTab = 0;
            }

            _mainWindow.Title = string.Format("Amoeba {0}", App.AmoebaVersion);
        }