Esempio n. 1
0
            static void Main(string[] args)
            {
                IMediator mediator = new Mediator();
                Flight    flight1  = new Flight(mediator);
                Runway    runway   = new Runway(mediator);

                mediator.RegisterFlight(flight1);
                mediator.RegisterRunway(runway);
                flight1.Land();
                runway.Land();
                flight1.Land();
                Console.ReadLine();
            }
Esempio n. 2
0
 public void RegisterRunway(Runway runway)
 {
     _runway = runway;
 }