public FlightMediator(Engine engine, Aviation aviation, Wheels wheels, Cockpit cockpit) { _engine = engine; _aviation = aviation; _wheels = wheels; _cockpit = cockpit; }
public MainForm() { InitializeComponent(); // Create Instances _engine = new Engine(); _aviation = new Aviation(); _wheels = new Wheels(); _cockpit = new Cockpit(); _mediator = new FlightMediator(_engine, _aviation, _wheels, _cockpit); }