public PanelAirports(PageAirports parent)
        {
            this.ParentPage = parent;

            WrapPanel buttonsPanel = new WrapPanel();

            ucSelectButton sbSearch = new ucSelectButton();
            sbSearch.Uid = "201";
            sbSearch.Content = Translator.GetInstance().GetString("PanelAirports", sbSearch.Uid);
            sbSearch.IsSelected = true;
            sbSearch.Click += new System.Windows.RoutedEventHandler(sbSearch_Click);
            buttonsPanel.Children.Add(sbSearch);

            ucSelectButton sbExtendedSearch = new ucSelectButton();
            sbExtendedSearch.Uid = "203";
            sbExtendedSearch.Content = Translator.GetInstance().GetString("PanelAirports", sbExtendedSearch.Uid);
            sbExtendedSearch.Click += new System.Windows.RoutedEventHandler(sbExtendedSearch_Click);
            buttonsPanel.Children.Add(sbExtendedSearch);

            ucSelectButton sbStatistics = new ucSelectButton();
            sbStatistics.Uid = "202";
            sbStatistics.Content = Translator.GetInstance().GetString("PanelAirports", sbStatistics.Uid);
            sbStatistics.Click += new System.Windows.RoutedEventHandler(sbStatistics_Click);
            buttonsPanel.Children.Add(sbStatistics);

            this.Children.Add(buttonsPanel);

            frameContent = new Frame();
            frameContent.NavigationUIVisibility = NavigationUIVisibility.Hidden;
            frameContent.Navigate(new PageSearchAirports(this.ParentPage));

            this.Children.Add(frameContent);
        }
示例#2
0
        public PanelAirlines()
        {
            WrapPanel buttonsPanel = new WrapPanel();

            // chs, 2011-18-10 added for different views / statistics for airlines
            ucSelectButton sbFlights = new ucSelectButton();
            sbFlights.Uid = "1001";
            sbFlights.Content = Translator.GetInstance().GetString("PanelAirlines", sbFlights.Uid);
            sbFlights.IsSelected = true;
            sbFlights.Click += new System.Windows.RoutedEventHandler(sbFlights_Click);
            buttonsPanel.Children.Add(sbFlights);

            ucSelectButton sbFinancial = new ucSelectButton();
            sbFinancial.Uid = "1002";
            sbFinancial.Content = Translator.GetInstance().GetString("PanelAirlines", sbFinancial.Uid);
            sbFinancial.Click += new System.Windows.RoutedEventHandler(sbFinancial_Click);
             buttonsPanel.Children.Add(sbFinancial);

            ucSelectButton sbFleet = new ucSelectButton();
            sbFleet.Uid = "1003";
            sbFleet.Content = Translator.GetInstance().GetString("PanelAirlines", sbFleet.Uid);
            sbFleet.Click += new System.Windows.RoutedEventHandler(sbFleet_Click);
            buttonsPanel.Children.Add(sbFleet);

            this.Children.Add(buttonsPanel);

            frameContent = new Frame();
            frameContent.NavigationUIVisibility = NavigationUIVisibility.Hidden;
            frameContent.Navigate(new PageAirlinesStatistics());

            this.Children.Add(frameContent);
        }
        public PanelFleetAirliner(FleetAirliner airliner)
        {
            this.Airliner = airliner;

            WrapPanel buttonsPanel = new WrapPanel();

            ucSelectButton sbFacilities = new ucSelectButton();
            sbFacilities.Content = Translator.GetInstance().GetString("PanelFleetAirliner","200");
            sbFacilities.IsSelected = this.Airliner.Airliner.Type.TypeAirliner == AirlinerType.TypeOfAirliner.Passenger;
            sbFacilities.Click += new System.Windows.RoutedEventHandler(sbFacilities_Click);
            sbFacilities.Visibility = this.Airliner.Airliner.Type.TypeAirliner == AirlinerType.TypeOfAirliner.Passenger ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed;
            buttonsPanel.Children.Add(sbFacilities);

            ucSelectButton sbRoute = new ucSelectButton();
            sbRoute.Content = Translator.GetInstance().GetString("PanelFleetAirliner","201");
            sbRoute.IsSelected = this.Airliner.Airliner.Type.TypeAirliner != AirlinerType.TypeOfAirliner.Passenger;
            sbRoute.Click += new System.Windows.RoutedEventHandler(sbRoute_Click);
            buttonsPanel.Children.Add(sbRoute);

            ucSelectButton sbTimeSlot = new ucSelectButton();
            sbTimeSlot.Content  = Translator.GetInstance().GetString("PanelFleetAirliner","202");
            sbTimeSlot.Visibility = System.Windows.Visibility.Collapsed;
            sbTimeSlot.Click += new System.Windows.RoutedEventHandler(sbTimeSlot_Click);
            buttonsPanel.Children.Add(sbTimeSlot);

            ucSelectButton sbStatistics = new ucSelectButton();
            sbStatistics.Content  = Translator.GetInstance().GetString("PanelFleetAirliner","203");
            sbStatistics.Click += new System.Windows.RoutedEventHandler(sbStatistics_Click);
            buttonsPanel.Children.Add(sbStatistics);

            ucSelectButton sbMaintenance = new ucSelectButton();
            sbMaintenance.Content = Translator.GetInstance().GetString("PanelFleetAirliner","205");
            sbMaintenance.Visibility = this.Airliner.Airliner.Airline.IsHuman ? Visibility.Visible : System.Windows.Visibility.Collapsed;
            sbMaintenance.Click +=sbMaintenance_Click;
            buttonsPanel.Children.Add(sbMaintenance);

            ucSelectButton sbInsurance = new ucSelectButton();
            sbInsurance.Content = Translator.GetInstance().GetString("PanelFleetAirliner", "204");
            sbInsurance.Visibility = this.Airliner.Airliner.Airline.IsHuman ? Visibility.Visible : Visibility.Collapsed;
            sbInsurance.Click+=sbInsurance_Click;
            buttonsPanel.Children.Add(sbInsurance);

             this.Children.Add(buttonsPanel);

            frameContent = new Frame();
            frameContent.NavigationUIVisibility = NavigationUIVisibility.Hidden;

            if (this.Airliner.Airliner.Type.TypeAirliner == AirlinerType.TypeOfAirliner.Passenger)
                frameContent.Navigate(new PageFleetFacilities(this.Airliner));
            else
                frameContent.Navigate(new PageFleetRoute(this.Airliner));

            this.Children.Add(frameContent);
        }
        //creates the panel for the day buttons
        private WrapPanel createDaysButtonsPanel()
        {
            WrapPanel panelButtons = new WrapPanel();

            foreach (DayOfWeek day in Enum.GetValues(typeof(DayOfWeek)))
            {

                ucSelectButton sbDay = new ucSelectButton();
                sbDay.Content = day.ToString();
                sbDay.Click += new RoutedEventHandler(sbDay_Click);
                sbDay.Tag = day;
                sbDay.IsSelected = day == GameObject.GetInstance().GameTime.DayOfWeek;

                panelButtons.Children.Add(sbDay);
            }

            return panelButtons;
        }
示例#5
0
        public PanelAirline(Airline airline,StandardPage parent)
        {
            this.Airline = airline;
            this.PageParent = parent;

            WrapPanel buttonsPanel = new WrapPanel();

            ucSelectButton sbFleet = new ucSelectButton();
            sbFleet.Uid = "1001";
            sbFleet.Content = Translator.GetInstance().GetString("PanelAirline", sbFleet.Uid);
            sbFleet.IsSelected = true;
            sbFleet.Click += new System.Windows.RoutedEventHandler(sbFleet_Click);
            buttonsPanel.Children.Add(sbFleet);

            ucSelectButton sbDestinations = new ucSelectButton();
            sbDestinations.Uid = "1002";
            sbDestinations.Content = Translator.GetInstance().GetString("PanelAirline", sbDestinations.Uid);
            sbDestinations.Click += new System.Windows.RoutedEventHandler(sbDestinations_Click);
            buttonsPanel.Children.Add(sbDestinations);

            ucSelectButton sbPilots = new ucSelectButton();
            sbPilots.Uid = "1008";
            sbPilots.Content = Translator.GetInstance().GetString("PanelAirline", sbPilots.Uid);
            sbPilots.Click += sbPilots_Click;
            buttonsPanel.Children.Add(sbPilots);

            ucSelectButton sbStatistics = new ucSelectButton();
            sbStatistics.Uid = "1004";
            sbStatistics.Click += new System.Windows.RoutedEventHandler(sbStatistics_Click);
            sbStatistics.Content = Translator.GetInstance().GetString("PanelAirline", sbStatistics.Uid);
            buttonsPanel.Children.Add(sbStatistics);

            ucSelectButton sbFinances = new ucSelectButton();
            sbFinances.Uid = "1005";
            sbFinances.Content = Translator.GetInstance().GetString("PanelAirline", sbFinances.Uid);
            sbFinances.Click += new System.Windows.RoutedEventHandler(sbFinances_Click);
            buttonsPanel.Children.Add(sbFinances);

            ucSelectButton sbSubsidiary = new ucSelectButton();
            sbSubsidiary.Uid = "1007";
            sbSubsidiary.Content = Translator.GetInstance().GetString("PanelAirline", sbSubsidiary.Uid);
            sbSubsidiary.Click += new System.Windows.RoutedEventHandler(sbSubsidiary_Click);
            sbSubsidiary.Visibility = this.Airline is SubsidiaryAirline ? System.Windows.Visibility.Collapsed : System.Windows.Visibility.Visible;
            buttonsPanel.Children.Add(sbSubsidiary);

            ucSelectButton sbWages = new ucSelectButton();
            sbWages.Uid = "1006";
            sbWages.Content = Translator.GetInstance().GetString("PanelAirline", sbWages.Uid);
            sbWages.Visibility = this.Airline.IsHuman ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed;
            sbWages.Click += new System.Windows.RoutedEventHandler(sbWages_Click);
            buttonsPanel.Children.Add(sbWages);

            ucSelectButton sbInsurances = new ucSelectButton();
            sbInsurances.Uid = "1009";
            sbInsurances.Content = Translator.GetInstance().GetString("PanelAirline", sbInsurances.Uid);
            sbInsurances.Visibility = this.Airline.IsHuman ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed;
            sbInsurances.Click += sbInsurances_Click;
            buttonsPanel.Children.Add(sbInsurances);

            this.Children.Add(buttonsPanel);

            frameContent = new Frame();
            frameContent.NavigationUIVisibility = NavigationUIVisibility.Hidden;
            frameContent.Navigate(new PageAirlineFleet(this.Airline));

            this.Children.Add(frameContent);
        }
示例#6
0
        //creates the panel for the passengers
        private StackPanel createPassengersPanel()
        {
            StackPanel panelPassengers = new StackPanel();
            panelPassengers.Margin = new Thickness(0, 10, 0, 0);

            TextBlock txtHeader = new TextBlock();
            txtHeader.Uid = "1020";
            txtHeader.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
            txtHeader.SetResourceReference(TextBlock.BackgroundProperty, "HeaderBackgroundBrush");
            txtHeader.TextAlignment = TextAlignment.Left;
            txtHeader.FontWeight = FontWeights.Bold;
            txtHeader.Text = Translator.GetInstance().GetString("PageAirport", txtHeader.Uid);
            panelPassengers.Children.Add(txtHeader);

            WrapPanel panelButtons = new WrapPanel();

            ucSelectButton sbDomestic = new ucSelectButton();
            sbDomestic.Uid = "1025";
            sbDomestic.Content = Translator.GetInstance().GetString("PageAirport", sbDomestic.Uid);
            sbDomestic.IsSelected = true;
            sbDomestic.Click += sbDomestic_Click;
            panelButtons.Children.Add(sbDomestic);

            ucSelectButton sbInternational = new ucSelectButton();
            sbInternational.Uid = "1026";
            sbInternational.Content = Translator.GetInstance().GetString("PageAirport", sbInternational.Uid);
            sbInternational.Click += sbInternational_Click;
            panelButtons.Children.Add(sbInternational);

            panelPassengers.Children.Add(panelButtons);

            lbPassengers = new ListBox();
            lbPassengers.ItemContainerStyleSelector = new ListBoxItemStyleSelector();
            lbPassengers.ItemTemplate = this.Resources["DemandItem"] as DataTemplate;
            lbPassengers.MaxHeight = (GraphicsHelpers.GetContentHeight() - 100) / 3;
            panelPassengers.Children.Add(lbPassengers);

            domesticDemand = true;

            showDemand();

            return panelPassengers;
        }
示例#7
0
        //creates the panel for flights
        private StackPanel createFlightsPanel()
        {
            StackPanel panelFlights = new StackPanel();
            panelFlights.Margin = new Thickness(0, 10, 0, 0);

            ContentControl ccHeader = new ContentControl();
            ccHeader.ContentTemplate = this.Resources["FlightHeader"] as DataTemplate;
            panelFlights.Children.Add(ccHeader);

            WrapPanel panelButtons = new WrapPanel();

            ucSelectButton sbArrivals = new ucSelectButton();
            sbArrivals.Uid = "1029";
            sbArrivals.Content = Translator.GetInstance().GetString("PageAirport", sbArrivals.Uid);
            sbArrivals.IsSelected = true;
            sbArrivals.Click += sbArrivals_Click;
            panelButtons.Children.Add(sbArrivals);

            ucSelectButton sbDepartures = new ucSelectButton();
            sbDepartures.Uid = "1030";
            sbDepartures.Content = Translator.GetInstance().GetString("PageAirport", sbDepartures.Uid);
            sbDepartures.Click += sbDepartures_Click;
            panelButtons.Children.Add(sbDepartures);

            panelFlights.Children.Add(panelButtons);

            lbFlights = new ListBox();
            lbFlights.ItemContainerStyleSelector = new ListBoxItemStyleSelector();
            lbFlights.ItemTemplate = this.Resources["FlightItem"] as DataTemplate;
            lbFlights.MaxHeight = (GraphicsHelpers.GetContentHeight() - 100) / 4;
            panelFlights.Children.Add(lbFlights);

            showFlights(true);

            return panelFlights;
        }
        public PageAirlineWages(Airline airline)
        {
            InitializeComponent();

            this.Airline = airline;

            this.FeeValues = new Dictionary<FeeType, double>();

            FeeTypes.GetTypes().ForEach(f => this.FeeValues.Add(f, this.Airline.Fees.getValue(f)));

            StackPanel panelWagesAndEmployees = new StackPanel();

            WrapPanel panelMenuButtons = new WrapPanel();
            panelWagesAndEmployees.Children.Add(panelMenuButtons);

            ucSelectButton sbWages = new ucSelectButton();
            sbWages.Uid = "1004";
            sbWages.Content = Translator.GetInstance().GetString("PageAirlineWages", sbWages.Uid);
            sbWages.IsSelected = true;
            sbWages.Click += new RoutedEventHandler(sbWages_Click);
            panelMenuButtons.Children.Add(sbWages);

            ucSelectButton sbEmployees = new ucSelectButton();
            sbEmployees.Uid = "1005";
            sbEmployees.Content = Translator.GetInstance().GetString("PageAirlineWages", sbEmployees.Uid);
            sbEmployees.Click += new RoutedEventHandler(sbEmployees_Click);
            panelMenuButtons.Children.Add(sbEmployees);

            ucSelectButton sbService = new ucSelectButton();
            sbService.Uid = "1006";
            sbService.Content = Translator.GetInstance().GetString("PageAirlineWages", sbService.Uid);
            sbService.Click += new RoutedEventHandler(sbService_Click);
            panelMenuButtons.Children.Add(sbService);

            ucSelectButton sbAirlineService = new ucSelectButton();
            sbAirlineService.Uid = "1007";
            sbAirlineService.Content = Translator.GetInstance().GetString("PageAirlineWages", sbAirlineService.Uid);
            sbAirlineService.Click += new RoutedEventHandler(sbAirlineService_Click);
            panelMenuButtons.Children.Add(sbAirlineService);

            ucSelectButton sbAdvertisement = new ucSelectButton();
            sbAdvertisement.Uid = "1008";
            sbAdvertisement.Content = Translator.GetInstance().GetString("PageAirlineWages", sbAdvertisement.Uid);
            sbAdvertisement.Click += new RoutedEventHandler(sbAdvertisement_Click);
            panelMenuButtons.Children.Add(sbAdvertisement);

            ucSelectButton sbPolicies = new ucSelectButton();
            sbPolicies.Uid = "1016";
            sbPolicies.Content = Translator.GetInstance().GetString("PageAirlineWages", sbPolicies.Uid);
            sbPolicies.Click += new RoutedEventHandler(sbPolicies_Click);
            panelMenuButtons.Children.Add(sbPolicies);

            panelWages = createWagesPanel();
            panelWagesAndEmployees.Children.Add(panelWages);

            panelEmployees = createEmployeesPanel();
            panelEmployees.Visibility = System.Windows.Visibility.Collapsed;
            panelWagesAndEmployees.Children.Add(panelEmployees);

            panelInflightServices = createInflightServicesPanel();
            panelInflightServices.Visibility = System.Windows.Visibility.Collapsed;
            panelWagesAndEmployees.Children.Add(panelInflightServices);

            panelAirlineServices = createAirlineServicesPanel();
            panelAirlineServices.Visibility = System.Windows.Visibility.Collapsed;
            panelWagesAndEmployees.Children.Add(panelAirlineServices);

            panelAdvertisement = createAdvertisementPanel();
            panelAdvertisement.Visibility = System.Windows.Visibility.Collapsed;
            panelWagesAndEmployees.Children.Add(panelAdvertisement);

            panelAirlinePolicies = createPoliciesPanel();
            panelAirlinePolicies.Visibility = System.Windows.Visibility.Collapsed;
            panelWagesAndEmployees.Children.Add(panelAirlinePolicies);

            this.Content = panelWagesAndEmployees;
        }
示例#9
0
        public PanelAirport(Airport airport)
        {
            Stopwatch sw = new Stopwatch();
            sw.Start();

            this.Airport = airport;

            WrapPanel buttonsPanel = new WrapPanel();

            ucSelectButton sbGates = new ucSelectButton();
            sbGates.Uid = "201";
            sbGates.Content = Translator.GetInstance().GetString("PanelAirport", sbGates.Uid);
            sbGates.Click += new System.Windows.RoutedEventHandler(sbGates_Click);
            sbGates.IsSelected = true;
            buttonsPanel.Children.Add(sbGates);

            ucSelectButton sbRunways = new ucSelectButton();
            sbRunways.Uid = "205";
            sbRunways.Content = Translator.GetInstance().GetString("PanelAirport", sbRunways.Uid);
            sbRunways.Click += new System.Windows.RoutedEventHandler(sbRunways_Click);
            buttonsPanel.Children.Add(sbRunways);

            ucSelectButton sbFacilities = new ucSelectButton();
            sbFacilities.Uid = "202";
            sbFacilities.Content = Translator.GetInstance().GetString("PanelAirport", sbFacilities.Uid);
            sbFacilities.Click += new System.Windows.RoutedEventHandler(sbFacilities_Click);
            buttonsPanel.Children.Add(sbFacilities);

            ucSelectButton sbWeather = new ucSelectButton();
            sbWeather.Uid = "208";
            sbWeather.Content = Translator.GetInstance().GetString("PanelAirport", sbWeather.Uid);
            sbWeather.Click += new System.Windows.RoutedEventHandler(sbWeather_Click);
            buttonsPanel.Children.Add(sbWeather);

            ucSelectButton sbStatistics = new ucSelectButton();
            sbStatistics.Uid = "203";
            sbStatistics.Content = Translator.GetInstance().GetString("PanelAirport", sbStatistics.Uid);
            sbStatistics.Click += new System.Windows.RoutedEventHandler(sbStatistics_Click);
            buttonsPanel.Children.Add(sbStatistics);

            ucSelectButton sbTraffic = new ucSelectButton();
            sbTraffic.Uid = "207";
            sbTraffic.Content = Translator.GetInstance().GetString("PanelAirport", sbTraffic.Uid);
            sbTraffic.Click += new System.Windows.RoutedEventHandler(sbTraffic_Click);
            buttonsPanel.Children.Add(sbTraffic);

            ucSelectButton sbFlights = new ucSelectButton();
            sbFlights.Uid = "204";
            sbFlights.Content = Translator.GetInstance().GetString("PanelAirport", sbFlights.Uid);
            sbFlights.Click += new System.Windows.RoutedEventHandler(sbFlights_Click);
            buttonsPanel.Children.Add(sbFlights);

            ucSelectButton sbDistances = new ucSelectButton();
            sbDistances.Uid = "206";
            sbDistances.Content = Translator.GetInstance().GetString("PanelAirport",sbDistances.Uid);
            sbDistances.Click += new System.Windows.RoutedEventHandler(sbDistances_Click);
            buttonsPanel.Children.Add(sbDistances);

            this.Children.Add(buttonsPanel);

            frameContent = new Frame();
            frameContent.NavigationUIVisibility = NavigationUIVisibility.Hidden;
            frameContent.Navigate(new PageAirportGates(this.Airport));

            this.Children.Add(frameContent);

            sw.Stop();
            PerformanceCounters.AddPerformanceCounter(new PagePerformanceCounter("PanelAirport", GameObject.GetInstance().GameTime, sw.ElapsedMilliseconds));
        }
        //creates the panel for stopover statistics
        private StackPanel createStopoverStatisticsPanel()
        {
            StackPanel panelStopoverStatistics = new StackPanel();

            WrapPanel panelMenuButtons = new WrapPanel();
            panelStopoverStatistics.Children.Add(panelMenuButtons);

            ucSelectButton sbRouteFinances = new ucSelectButton();
            sbRouteFinances.Uid = "1007";
            sbRouteFinances.Content = Translator.GetInstance().GetString("PanelRoute", sbRouteFinances.Uid);
            sbRouteFinances.Click += sbRouteFinances_Click;
            sbRouteFinances.IsSelected = true;
            panelMenuButtons.Children.Add(sbRouteFinances);

            if (this.Route.HasStopovers)
            {
                foreach (Route leg in this.Route.Stopovers.SelectMany(s => s.Legs))
                {
                    ucSelectButton sbLeg = new ucSelectButton();
                    sbLeg.Content = string.Format("{0}-{1}", new AirportCodeConverter().Convert(leg.Destination1), new AirportCodeConverter().Convert(leg.Destination2));
                    sbLeg.Tag = leg;
                    sbLeg.Click += sbLeg_Click;
                    panelMenuButtons.Children.Add(sbLeg);
                }
            }
            else
            {
                ucSelectButton sbStatistics = new ucSelectButton();
                sbStatistics.Content = string.Format("{0}-{1}", new AirportCodeConverter().Convert(this.Route.Destination1), new AirportCodeConverter().Convert(this.Route.Destination2));
                sbStatistics.Tag = this.Route;
                sbStatistics.Click += sbLeg_Click;
                panelMenuButtons.Children.Add(sbStatistics);
            }

            frmStopoverStatistics = new Frame();
            frmStopoverStatistics.Navigate(createRouteFinancesPanel());

            panelStopoverStatistics.Children.Add(frmStopoverStatistics);

            return panelStopoverStatistics;
        }
        public PageAirlineFleet(Airline airline)
        {
            InitializeComponent();

            this.Airline = airline;

            foreach (FleetAirliner fa in this.Airline.DeliveredFleet)
                _FleetDelivered.Add(fa);

            StackPanel panelFleet = new StackPanel();

            WrapPanel panelMenuButtons = new WrapPanel();
            panelFleet.Children.Add(panelMenuButtons);

            ucSelectButton sbOverview = new ucSelectButton();
            sbOverview.Uid = "1001";
            sbOverview.Content = Translator.GetInstance().GetString("PageAirlineFleet", sbOverview.Uid);
            sbOverview.Click += new RoutedEventHandler(sbOverview_Click);
            sbOverview.IsSelected = true;
            panelMenuButtons.Children.Add(sbOverview);

            ucSelectButton sbDetailed = new ucSelectButton();
            sbDetailed.Uid = "1002";
            sbDetailed.Content = Translator.GetInstance().GetString("PageAirlineFleet", sbDetailed.Uid);
            sbDetailed.Click += new RoutedEventHandler(sbDetailed_Click);
            panelMenuButtons.Children.Add(sbDetailed);

            ucSelectButton sbOrdered = new ucSelectButton();
            sbOrdered.Uid = "1009";
            sbOrdered.Content = Translator.GetInstance().GetString("PageAirlineFleet", sbOrdered.Uid);
            sbOrdered.Click += new RoutedEventHandler(sbOrdered_Click);
            panelMenuButtons.Children.Add(sbOrdered);

            panelOverview = createOverviewPanel();

            panelDetailed = createDetailedPanel();
            panelDetailed.Visibility = System.Windows.Visibility.Collapsed;
            panelDetailed.ToolTip = UICreator.CreateToolTip("View detailed information for this aircraft");

            panelOrdered = createOrderedPanel();
            panelOrdered.Visibility = System.Windows.Visibility.Collapsed;
            panelOrdered.ToolTip = UICreator.CreateToolTip("View ordered airliners");

            panelFleet.Children.Add(panelOverview);
            panelFleet.Children.Add(panelDetailed);
            panelFleet.Children.Add(panelOrdered);

            this.Content = panelFleet;
        }