using Apollon.WPF.Models; using Apollon.WPF.Stores; using Apollon.WPF.ViewModels; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; namespace Apollon.WPF { /// /// Interaction logic for App.xaml /// public partial class App : Application { private readonly ModalNavigationStore _modalNavigationStore; private readonly SelectedTournamentStore _selectedTournamentStore; private readonly Tournament _tournament; public App() { _modalNavigationStore = new ModalNavigationStore(); _selectedTournamentStore = new SelectedTournamentStore(); } protected override void OnStartup(StartupEventArgs e) { OverviewViewModel overviewViewModel = new OverviewViewModel(_selectedTournamentStore, _modalNavigationStore, _tournament); MainWindow = new MainWindow() { DataContext = new MainViewModel(_modalNavigationStore, overviewViewModel) }; MainWindow.Show(); base.OnStartup(e); } } }