Esempio n. 1
0
        public void StartAppp()
        {
            menu         = new Menu();
            menuCommands = new MenuCommands(menu);
            int command;

            GUI_IO.WriteHeadLine("Parking lot application");
            Console.WriteLine("");
            while (true)
            {
                command = menu.MainMenu();
                menuCommands.MainMenuCommands(command);
            }
        }
Esempio n. 2
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);
            }
        }