Esempio n. 1
0
        /// <summary>
        /// According to the table the user chose to work with in the begining the information is passed to one of the other displays.
        /// </summary>
        /// <remarks>The method gets data by id.</remarks>
        private static void GetEntryById()
        {
            Console.Clear();
            switch (numberTable)
            {
            case 1:
                sportsDisplay.GetSportById();
                break;

            case 2:
                countriesDisplay.GetCountryById();
                break;

            case 3:
                townsDisplay.GetTownById();
                break;

            case 4:
                competitorsDisplay.GetCompetitorById();
                break;

            case 5:
                coachesDisplay.GetCoachById();
                break;

            case 6:
                clubsDisplay.GetClubById();
                break;

            default:
                break;
            }
            Console.WriteLine();
            Console.WriteLine("Press any key to clear the screen..."); Console.ReadKey(); Console.Clear();
        }