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(); }