예제 #1
0
        private void CreateTeamsButton_Click(object sender, RoutedEventArgs e)
        {
            var singleTeamSearch = new SingleGameTeamSelectorView(ViewModelFactory);

            Visibility = Visibility.Hidden;
            singleTeamSearch.ShowDialog();
            Close();
        }
예제 #2
0
        private void SubmitHistoricalFranchises(SingleGameSetupViewModel vm)
        {
            var teams = vm.AssembleHistoricalFranchiseAllTimeTeams();

            Dispatcher.Invoke(() =>
            {
                var singleGameTeamSelector = new SingleGameTeamSelectorView(ViewModelFactory, teams.First(), teams.ElementAt(1));
                singleGameTeamSelector.Show();
                Close();
            });
        }
예제 #3
0
        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();
            });
        }