Пример #1
0
        static void Main(string[] args)
        {
            InitializeConsole();
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("You are welcome to use Airline manager 2.0");
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine("This is a manger which allows you to manage flights, which have a passanger you can manage too");
            Console.WriteLine("You will always have a menu with operation you can do on current object");
            Console.WriteLine("If you have any questions regarding current object, please look into 'Info' menu");
            Console.Write("While doing operations with editing, deleting or adding items please pay attention at");
            Console.ForegroundColor = ConsoleColor.Blue;
            Console.Write(" BLUE ");
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine("hint");

            Console.WriteLine("Please press 'Enter' button to proceed");
            Console.ReadLine();

            Start(AirlineFactory.Create(args));
        }
Пример #2
0
 public IAirlineManager GetManager() => AirlineFactory.Create(null);