Esempio n. 1
0
        public static int displayBoatTypesMenu()
        {
            // Console.Clear();
            string menuText =
                "\n" +
                "1. Narrow.\n" +
                "2. Sailing.\n" +
                "3. Motor.\n" //and available marina space
            ;

            //Console.WriteLine(menuText);
            drawRectangle(menuText, ConsoleColor.White, ConsoleColor.DarkBlue);
            int userInput = DisplayManager.getUserInput();

            if (userInput < 1 || userInput > 3)
            {
                throw new ArgumentException("Please choose an option between 1 and 3");
            }
            return(userInput);
        }
Esempio n. 2
0
        public static int displayHeaderMenu()
        {
            // Console.Clear();
            string menuText =
                "\nWELCOME TO MARINA BERTH BOOKING SYSTEM.\n" +
                "What do you want to do?\n" +
                "1. Record a new booking.\n" +
                "2. Delete a Booking.\n" +
                "3. Display All Records.\n" +//and available marina space
                "4. Exit Application.";

            //Console.WriteLine(menuText);
            drawRectangle(menuText, ConsoleColor.White, ConsoleColor.DarkBlue);
            int userInput = DisplayManager.getUserInput();

            if (userInput < 1 || userInput > 4)
            {
                throw new ArgumentException("Please Enter an option between 1 and 4");
            }
            return(userInput);
        }