public void StartNewWorldCup(CoachModel coach) { string[] description = { "Welcome to World Cup " + "[COACH NAME]", "Please select your team:" }; List <string> teamListToSelection = new List <string> { }; foreach (TeamModel team in teams) { teamListToSelection.Add(team.name); } var optionSelected = ConsoleHandler.SelectWorldCupTeam(description, teamListToSelection.ToArray()); Console.Clear(); Console.Write("Selected Team2: " + teamListToSelection[optionSelected]); Console.ReadKey(); }
// public methods public void CreateNewCoach() { coach = ConsoleHandler.CreateCoach(); SelectGameOption(); }