Example #1
0
        public static void Main(string[] args)
        {
            var console = new CommanderConsole();

            console.Startup();
            while (console.HandleUserInput());
            console.Shutdown();
        }
Example #2
0
        public MainMenuState(CommanderConsole commander)
        {
            _commander = commander;

            this._choiceList = new ChoiceList(
                    new UserInputChoice("Option 1"),
                    new UserInputChoice("Option 2"),
                    new UserInputChoice("Exit Program")
                );
        }