Esempio n. 1
0
        private void nationalHockeyLeagueToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NHLTeamGenerator teamGenerator = (NHLTeamGenerator)parseFile(Sports.Hockey);

            if (teamGenerator == null)
            {
                return;
            }

            NHLPlayerSelectionForm form = new NHLPlayerSelectionForm(teamGenerator.getCenters(), teamGenerator.getWingers(),
                                                                     teamGenerator.getDefenses(), teamGenerator.getGoalies(), Convert.ToInt32(salaryCapTextBox.Text),
                                                                     Convert.ToInt32(salaryThresholdTextBox.Text));

            form.Show();
        }
Esempio n. 2
0
        private void nationalHockeyLeagueToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NHLTeamGenerator teamGenerator = (NHLTeamGenerator)parseFile(Sports.Hockey);
            if (teamGenerator == null)
            {
                return;
            }

            NHLPlayerSelectionForm form = new NHLPlayerSelectionForm(teamGenerator.getCenters(), teamGenerator.getWingers(),
             teamGenerator.getDefenses(), teamGenerator.getGoalies(), Convert.ToInt32(salaryCapTextBox.Text),
             Convert.ToInt32(salaryThresholdTextBox.Text));
            form.Show();
        }