Esempio n. 1
0
        /// <summary>
        /// Display all reservations whose date ranges fall within the next 30 days
        /// </summary>
        /// <param name="parkId"></param>
        private void DisplayAMonthOfReservations(int parkId)
        {
            List <Reservation> reservations;
            bool IsDone = false;

            while (!IsDone)
            {
                PrintHeader();
                reservations = reservationDAO.DisplayAMonthOfReservations(parkId);
                Console.WriteLine(Reservation.ReservationListHeader());
                foreach (Reservation reservation in reservations)
                {
                    Console.WriteLine(reservation.ToString());
                }

                Console.WriteLine();
                Console.WriteLine("Press any key to return to Park Info Menu.");
                Console.ReadKey();
                Console.Clear();
                IsDone = true;
            }
        }