예제 #1
0
파일: Base.cs 프로젝트: w1r2p1/livesports
 internal static void Getter(string teamname)
 {
     if (teamname == "quit")
     {
         CloseEverything();
     }
     else
     {
         Homepage.SwitchTabs(teamname);
     }
 }
예제 #2
0
파일: Base.cs 프로젝트: w1r2p1/livesports
        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);
            }
        }