public static void Main(string[] args) { var console = new CommanderConsole(); console.Startup(); while (console.HandleUserInput()); console.Shutdown(); }
public MainMenuState(CommanderConsole commander) { _commander = commander; this._choiceList = new ChoiceList( new UserInputChoice("Option 1"), new UserInputChoice("Option 2"), new UserInputChoice("Exit Program") ); }