Ejemplo n.º 1
0
 public FlightMediator(Engine engine, Aviation aviation, Wheels wheels, Cockpit cockpit)
 {
     _engine   = engine;
     _aviation = aviation;
     _wheels   = wheels;
     _cockpit  = cockpit;
 }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();

            // Create Instances
            _engine   = new Engine();
            _aviation = new Aviation();
            _wheels   = new Wheels();
            _cockpit  = new Cockpit();

            _mediator = new FlightMediator(_engine, _aviation, _wheels, _cockpit);
        }