internal static void Getter(string teamname) { if (teamname == "quit") { CloseEverything(); } else { Homepage.SwitchTabs(teamname); } }
internal static void Getter() { showSports(); Console.Write("Podaj numer lub nazwe dyscypliny: "); string sportsname = Console.ReadLine(); switch (sportsname) { case "1": sportsname = "Piłka nożna"; break; case "2": sportsname = "Tenis"; break; case "3": sportsname = "Hokej"; break; case "4": sportsname = "Koszykówka"; break; case "5": sportsname = "Siatkówka"; break; case "6": sportsname = "Baseball"; break; default: break; } Console.Write("Podaj nazwe druzyny: "); string teamname = Console.ReadLine(); if (teamname == "quit") { CloseEverything(); } else { Homepage.SwitchSports(sportsname); Homepage.SwitchTabs(teamname); } }