private void backButton_Click(object sender, RoutedEventArgs e) { var setupdWindow = new SingleGameSetupView(ViewModelFactory); setupdWindow.Show(); Close(); }
private void LoadSingleGame(GameSelectorViewModel vm) { vm.LoadDatabaseForSingleGame(); Dispatcher.Invoke(() => { vm.ToggleLoading(); var singleGame = new SingleGameSetupView(ViewModelFactory); singleGame.Show(); Close(); }); }