Exemple #1
0
        private void GetUserInput()
        {
            System.Console.WriteLine("Where To:");
            string input = Console.ReadLine().ToLower();

            switch (input)
            {
            case "q":
            case "quit":
            case "exit":
            case "close":
                Environment.Exit(0);
                break;

            default:
                _airService.Fly(input);
                break;
            }
        }