private void AddButton_Click(object sender, EventArgs e)
        {
            List <string> team = new List <string>();

            team.Add(teamNameBox.Text);

            AddToTeam addToTeam = new AddToTeam(team, true, teamPlayerBox);

            addToTeam.Show();
        }
Example #2
0
        private void AddToTeam_Click(object sender, EventArgs e)
        {
            List <string> teamNames = new List <string>();

            for (int i = 0; i < teamListBox.Items.Count; i++)
            {
                teamNames.Add(teamListBox.Items[i].ToString());
            }

            AddToTeam addToTeam = new AddToTeam(teamNames, false, new ListBox());

            addToTeam.Show();
        }