private void AddCommand(object sender, RoutedEventArgs e) { TeamHandler teamHandl = new TeamHandler(); string name = NameCommand.Text; Team team = new Team(); team.Name = name; team.TeamColor = System.Drawing.Color.Red; List <ITeam> list = new List <ITeam>(); list.Add(team); teamHandl.BuildTeams(list, 0); }