Exemple #1
0
        private void HandleInput()
        {
            var chosenOption = Input.NumberValueInRange(1, ConsoleOptions.Count + 1) - 1;

            if (chosenOption == ConsoleOptions.Count)
            {
                ConsoleMenu.PreviousPage();
            }
            else
            {
                ConsoleOptions[chosenOption].Execute();
            }
        }
Exemple #2
0
 public ConsolePage(string title, ConsoleMenu consoleMenu)
 {
     ConsoleOptions = new List <ConsoleOption>();
     Title          = title;
     ConsoleMenu    = consoleMenu;
 }