private void _mainManager_TabGridItemsChanged(object sender, EventArgs e) { switch (_viewModel.ActiveTab) { case MainWindowViewModel.Tabs.Folders: _viewModel.ActiveTabRows = _mainManager.GetTabGridItemCount(MainWindowViewModel.Tabs.Folders); break; case MainWindowViewModel.Tabs.Duplicates: _viewModel.ActiveTabRows = _mainManager.GetTabGridItemCount(MainWindowViewModel.Tabs.Duplicates); break; case MainWindowViewModel.Tabs.Jobs: _viewModel.ActiveTabRows = _mainManager.GetTabGridItemCount(MainWindowViewModel.Tabs.Jobs); break; case MainWindowViewModel.Tabs.Cache: _viewModel.ActiveTabRows = _mainManager.GetTabGridItemCount(MainWindowViewModel.Tabs.Cache); break; } }