private void CreateTeamsButton_Click(object sender, RoutedEventArgs e) { var singleTeamSearch = new SingleGameTeamSelectorView(ViewModelFactory); Visibility = Visibility.Hidden; singleTeamSearch.ShowDialog(); Close(); }
private void SubmitHistoricalFranchises(SingleGameSetupViewModel vm) { var teams = vm.AssembleHistoricalFranchiseAllTimeTeams(); Dispatcher.Invoke(() => { var singleGameTeamSelector = new SingleGameTeamSelectorView(ViewModelFactory, teams.First(), teams.ElementAt(1)); singleGameTeamSelector.Show(); Close(); }); }
private void GenerateRandomTeams(SingleGameSetupViewModel vm, bool hallOfFamers = false, bool allStars = false) { var teams = vm.GenerateRandomTeams(hallOfFamers, allStars); Dispatcher.Invoke(() => { var singleGameTeamSelector = new SingleGameTeamSelectorView(ViewModelFactory, teams.First(), teams.ElementAt(1)); singleGameTeamSelector.Show(); Close(); }); }