Пример #1
0
        public void SecondAction()
        {
            CountryListView countries = new CountryListView(CountryDb);

            countries.Display();
            Console.WriteLine("Please select a country from the following list: ");
            string answer = Console.ReadLine();
            int    index  = int.Parse(answer);

            Console.WriteLine();
            CountryAction(CountryDb[index]);
            Console.WriteLine();
        }
Пример #2
0
        public void WelcomeAction()
        {
            CountryListView countries = new CountryListView(CountryDb);

            countries.Display();
            Console.Write("Hello welcome to the country app. Please select a country: ");
            string answer = Console.ReadLine();
            int    index  = int.Parse(answer) - 1;

            Console.WriteLine();
            CountryAction(CountryDb[index]);
            Console.WriteLine();
        }