コード例 #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();
        }
コード例 #2
0
ファイル: Main Form.cs プロジェクト: sphillips9/Draft-Winners
        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();
        }