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>
        /// <param name="numberTable"></param>
        private static void GetAllEntries(int numberTable)
        {
            Console.Clear();
            switch (numberTable)
            {
            case 1:
                sportsDisplay.GetAllSports();
                break;

            case 2:
                countriesDisplay.GetAllCountries();
                break;

            case 3:
                townsDisplay.GetAllTowns();
                break;

            case 4:
                competitorsDisplay.GetAllCompetitors();
                break;

            case 5:
                coachesDisplay.GetAllCoaches();
                break;

            case 6:
                clubsDisplay.GetAllClubs();
                break;

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