Beispiel #1
0
        private void pickPlayersCollegeBasketball(object sender, EventArgs e)
        {
            BasketballTeamGenerator teamGenerator = (BasketballTeamGenerator)parseFile(Sports.Basketball);

            if (teamGenerator == null)
            {
                return;
            }

            BasketballChooserForm form = new BasketballChooserForm(teamGenerator.getForwards(), teamGenerator.getGuards(),
                                                                   Convert.ToInt32(salaryCapTextBox.Text), Convert.ToInt32(salaryThresholdTextBox.Text));

            form.Show();
        }
Beispiel #2
0
        private void pickPlayersCollegeBasketball(object sender, EventArgs e)
        {
            BasketballTeamGenerator teamGenerator = (BasketballTeamGenerator)parseFile(Sports.Basketball);
            if (teamGenerator == null)
            {
                return;
            }

            BasketballChooserForm form = new BasketballChooserForm(teamGenerator.getForwards(), teamGenerator.getGuards(),
             Convert.ToInt32(salaryCapTextBox.Text), Convert.ToInt32(salaryThresholdTextBox.Text));
            form.Show();
        }