public void Init(AircraftMenuControl acMenu, FuelPlanningControl fuelMenu, TOPerfControl toMenu, LandingPerfControl ldgMenu, MiscInfoControl miscInfoMenu, TracksControl tracksMenu, WindControl windControl, AboutPageControl aboutMenu, Panel innerPanel) { this.acMenu = acMenu; this.fuelMenu = fuelMenu; this.toMenu = toMenu; this.ldgMenu = ldgMenu; this.miscInfoMenu = miscInfoMenu; this.tracksMenu = tracksMenu; this.windControl = windControl; this.aboutMenu = aboutMenu; this.innerPanel = innerPanel; EnableViewControl(); EnableControlColors(); SetExtraLblStyle(); SetManualLblListener(); }
public void Init( TracksControl tracksControl, AirwayNetwork airwayNetwork, Locator <CountryCodeManager> countryCodesLocator, Locator <AppOptions> appSettingsLocator, Updater updater) { this.tracksControl = tracksControl; this.airwayNetwork = airwayNetwork; this.countryCodesLocator = countryCodesLocator; this.appSettingsLocator = appSettingsLocator; this.updater = updater; SetDefaultState(); simulatorPathsMenu.Init(); SetControlsAsInOptions(); FormClosing += CurrentFormClosing; #if (DEBUG) updateBtn.Enabled = false; updateBtn.Text = "Update disabled in debug mode."; #else PerformAutoUpdate(); #endif }
private void AddControls() { acMenu = new AircraftMenuControl(); fuelMenu = new FuelPlanningControl(); toMenu = new TOPerfControl(); ldgMenu = new LandingPerfControl(); miscInfoMenu = new MiscInfoControl(); tracksContorl = new TracksControl(); windControl = new WindControl(); aboutMenu = new AboutPageControl(); foreach (var i in Pages) { i.Location = Point.Empty; i.Visible = i == acMenu; panel2.Controls.Add(i); } }