first NavBar finish

This commit is contained in:
Natlinux
2022-11-28 00:42:42 +01:00
parent 56a433876e
commit b6a427ca29
9 changed files with 65 additions and 21 deletions

View File

@@ -30,14 +30,13 @@ namespace Apollon.WPF.ViewModels
public ICommand NavigatePreparationCommand { get; }
public OverviewDetailsViewModel(SelectedTournamentsStore selectedTournamentStore, NavigationStore navigationStore, ModalNavigationStore modalNavigationStore,TournamentsStore tournamentsStore)
public OverviewDetailsViewModel(SelectedTournamentsStore selectedTournamentStore, NavigationService<GroupsViewModel> groupNavigationService)
{
_selectedTournamentStore = selectedTournamentStore;
_selectedTournamentStore.SelectedTournamentChanged += SelectedTournamentStore_SelectedTournamentChanged;
NavigatePreparationCommand = new NavigateCommand<GroupsViewModel>(new NavigationService<GroupsViewModel> (
navigationStore, () => new GroupsViewModel( _selectedTournamentStore, navigationStore, modalNavigationStore, tournamentsStore)));
NavigatePreparationCommand = new NavigateCommand<GroupsViewModel>(groupNavigationService);
}
protected override void Dispose()