Exemple #1
0
        /// <summary>
        /// Prints top level menu
        /// </summary>
        private Dictionary <int, string> PrintMainMenu()
        {
            List <Park> parks = parkDAO.GetParkList();
            Dictionary <int, string> parkPairs = new Dictionary <int, string>();

            Console.WriteLine("Welcome to the National Park Information and Reservation Service");
            Console.WriteLine();
            Console.WriteLine("Park Selection Interface");

            foreach (Park park in parks)
            {
                Console.WriteLine($"  {park.Park_Id}) {park.Name} National Park");
                parkPairs[park.Park_Id] = park.Name;
            }
            Console.WriteLine();
            Console.WriteLine("  Q) Quit");
            Console.WriteLine();
            Console.Write("Select a park for more details:    ");

            return(parkPairs);
        }