private void golfToolStripMenuItem1_Click(object sender, EventArgs e) { GolfTeamGenerator teamGenerator = (GolfTeamGenerator)parseFile(Sports.Golf); if (teamGenerator == null) { return; } GolfPlayerSelectorForm form = new GolfPlayerSelectorForm(teamGenerator.getGolfers(), Convert.ToInt32(salaryCapTextBox.Text), Convert.ToInt32(salaryThresholdTextBox.Text)); form.Show(); }