AddTournament To list by add

This commit is contained in:
Natlinux81
2022-08-16 03:52:02 +02:00
parent cc060b273a
commit 4531f31658
7 changed files with 90 additions and 18 deletions

View File

@@ -17,17 +17,22 @@ namespace Apollon.WPF
public partial class App : Application
{
private readonly ModalNavigationStore _modalNavigationStore;
private readonly TournamentStore _tournamentStore;
private readonly SelectedTournamentStore _selectedTournamentStore;
public App()
{
_modalNavigationStore = new ModalNavigationStore();
_tournamentStore = new TournamentStore();
_selectedTournamentStore = new SelectedTournamentStore();
}
protected override void OnStartup(StartupEventArgs e)
{
OverviewViewModel overviewViewModel = new OverviewViewModel(_selectedTournamentStore, _modalNavigationStore);
OverviewViewModel overviewViewModel = new OverviewViewModel(
_tournamentStore,
_selectedTournamentStore,
_modalNavigationStore);
MainWindow = new MainWindow()
{