SelectedTournamentStore

This commit is contained in:
Natlinux81
2022-08-11 20:14:43 +02:00
parent e9b04dbe89
commit 960cf715ef
10 changed files with 93 additions and 38 deletions

View File

@@ -1,4 +1,5 @@
using Apollon.WPF.ViewModels;
using Apollon.WPF.Stores;
using Apollon.WPF.ViewModels;
using System;
using System.Collections.Generic;
using System.Configuration;
@@ -14,11 +15,17 @@ namespace Apollon.WPF
/// </summary>
public partial class App : Application
{
private readonly SelectedTournamentStore _selectedTournamentStore;
public App()
{
_selectedTournamentStore = new SelectedTournamentStore();
}
protected override void OnStartup(StartupEventArgs e)
{
MainWindow = new MainWindow()
{
DataContext = new ApollonOverviewViewModel()
DataContext = new ApollonOverviewViewModel(_selectedTournamentStore)
};
MainWindow.Show();