Exemplo n.º 1
0
        public int MainMenu()
        {
            int command;

            while (true)
            {
                command = GUI_IO.CommandMenu("Main menu", commands, "to quit the application") - 1;
                return(command);
            }
        }
Exemplo n.º 2
0
        public int AddMenu()
        {
            int command;

            command = GUI_IO.CommandMenu("Add a vehicle menu", commandsAdd, "to cancel") - 1;
            if (command == -1)
            {
                return(-1);
            }
            menuCommands.AddMenuCommands(command);
            return(command);
        }
Exemplo n.º 3
0
        public int ShowParkLotStatus()
        {
            int command;

            while (true)
            {
                command = GUI_IO.CommandMenu("Show parking lot status menu", commandsShowParkLotStatus, "to go back") - 1;
                if (command != -1)
                {
                    GUI_IO.WriteHeadLine(commandsShowParkLotStatus[command]);
                }
                else
                {
                    GUI_IO.WriteHeadLine("");
                }
                menuCommands.ShowParkLotStatusCommands(command);
                return(command);
            }
        }