Пример #1
0
        public void Listen(string input)
        {
            switch (input)
            {
            case "exit":
                Thought thought = new Thought();
                RespondToUser(thought.SayGoodbye());

                EventArgs eventArgs = new EventArgs();
                OnExit(eventArgs);
                break;

            default:
                RespondToUser("I don't recognize that command.");
                RespondToUser("Current commands:");
                RespondToUser("exit : quits the program");
                break;
            }
        }