private void HandleInput() { var chosenOption = Input.NumberValueInRange(1, ConsoleOptions.Count + 1) - 1; if (chosenOption == ConsoleOptions.Count) { ConsoleMenu.PreviousPage(); } else { ConsoleOptions[chosenOption].Execute(); } }
public ConsolePage(string title, ConsoleMenu consoleMenu) { ConsoleOptions = new List <ConsoleOption>(); Title = title; ConsoleMenu = consoleMenu; }