Ejemplo n.º 1
0
        private void AddControls()
        {
            acMenu       = new AircraftMenuControl();
            fuelMenu     = new FuelPlanningControl();
            toMenu       = new TOPerfControl();
            ldgMenu      = new LandingPerfControl();
            miscInfoMenu = new MiscInfoControl();
            aboutMenu    = new AboutPageControl();

            foreach (var i in Pages)
            {
                i.Location = Point.Empty;
                i.Visible  = i == acMenu;
                panel2.Controls.Add(i);
            }
        }