private void FormAddMatchup_Load(object sender, EventArgs e) { listTeam1 = TournamentEntry.ReadTeam(FormMenu.selectedTournament, ""); listTeam2 = TournamentEntry.ReadTeam(FormMenu.selectedTournament); comboBoxTeam1.DataSource = listTeam1; comboBoxTeam2.DataSource = listTeam2; comboBoxTeam1.DisplayMember = "Name"; comboBoxTeam2.DisplayMember = "Name"; comboBoxTeam1.DropDownStyle = ComboBoxStyle.DropDownList; comboBoxTeam1.DropDownStyle = ComboBoxStyle.DropDownList; string newCode = Matchups.GenerateId(); textBoxId.Text = newCode; }