clean up AddCommand EditCommand

This commit is contained in:
Natlinux81
2022-08-15 15:17:05 +02:00
parent a694685181
commit 7c5551d619
9 changed files with 44 additions and 15 deletions

View File

@@ -15,6 +15,7 @@ namespace Apollon.WPF.ViewModels
public OverviewDetailsViewModel OverviewDetailsViewModel{ get; }
public ICommand AddTournamentCommand { get; }
public ICommand EditTournamentCommand { get; }
public OverviewViewModel(SelectedTournamentStore _selectedTournamentStore, ModalNavigationStore modalNavigationStore)
{
@@ -22,6 +23,7 @@ namespace Apollon.WPF.ViewModels
OverviewDetailsViewModel = new OverviewDetailsViewModel(_selectedTournamentStore);
AddTournamentCommand = new OpenAddTournamentCommand(modalNavigationStore);
EditTournamentCommand = new OpenEditTournamentCommand(modalNavigationStore);
}
}
}