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 name.</remarks>
        private static void GetEntryByName()
        {
            Console.Clear();
            switch (numberTable)
            {
            case 1:
                sportsDisplay.GetSportByName();
                break;

            case 2:
                countriesDisplay.GetCountryByName();
                break;

            case 3:
                townsDisplay.GetTownByName();
                break;

            case 4:
                competitorsDisplay.GetCompetitorByName();
                break;

            case 5:
                coachesDisplay.GetCoachByName();
                break;

            case 6:
                clubsDisplay.GetClubByName();
                break;

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