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