Exemple #1
0
        public void CreationMenu()
        {
            Console.WriteLine("Press 1. If you want to create new passenger\nPress 2. If you want to create new flight");
            ConsoleKeyInfo key = Console.ReadKey();

            Console.Clear();
            switch (key.Key)
            {
            case ConsoleKey.D1:
            case ConsoleKey.NumPad1:
                airport.CreatePassenger();
                break;

            case ConsoleKey.D2:
            case ConsoleKey.NumPad2:
                airport.CreateFlight();
                break;
            }
            Console.ReadKey();
            Menu();
        }