Exemplo n.º 1
0
 public void NewTeam(string name)
 {
     if (this.lbxTeams.InvokeRequired)
     {
         NewTeamCallback d = new NewTeamCallback(NewTeam);
         this.Invoke(d, new object[] { name });
     }
     else
     {
         lbxTeams.Items.Add(name);
         teamMembers[name] = new List <string>();
     }
 }
Exemplo n.º 2
0
        public void NewTeam(string name)
        {
            if (this.lbxTeams.InvokeRequired)
            {
                NewTeamCallback d = new NewTeamCallback(NewTeam);
                this.Invoke(d, new object[] { name });
            }
            else
            {

                lbxTeams.Items.Add(name);
                teamMembers[name] = new List<string>();
            }
        }