Ejemplo n.º 1
0
        private void ContainersInitialization()
        {
            DelegateShowTravelHistory     showTravelHistory     = ShowContainer_TravelHistory;
            DelegateShowLocation          showLocation          = ShowContainer_Location;
            DelegateChangeSolarSystemInfo changeSolarSystemInfo = ChangeSolarSystemInfo;

            _containerSolarSystem = new whlSolarSystem(showTravelHistory, changeSolarSystemInfo);
            _containerSolarSystem.OnShowLostAndFoundOffice += Event_LostAndFoundOffice;

            _containerTravelHistory = new whlTravelHistory(showLocation);

            _containerBrowser = new ucRichBrowser();

            _containerSolarSystemOffline = new whlSolarSystemOffline();


            _containerVersion = new whlVersion();

            _containerBookmarks = new whlBookmarks();

            _containerAuthorization = new whlAuthorization();

            _containerAuthorization.OnChangeSelectedPilot += Event_ChangeSelectedPilot;

            _containerLostAndFoundOffice = new whlLostAndFoundOffice();
            _containerLostAndFoundOffice.OnShowSolarSystem += Event_ShowSolarSystem;

            pnlContainer.Controls.Add(_containerPilotInfo);
            pnlContainer.Controls.Add(_containerBookmarks);
            pnlContainer.Controls.Add(_containerSolarSystem);
            pnlContainer.Controls.Add(_containerTravelHistory);
            pnlContainer.Controls.Add(_containerSolarSystemOffline);
            pnlContainer.Controls.Add(_containerVersion);
            pnlContainer.Controls.Add(_containerAuthorization);
            pnlContainer.Controls.Add(_containerLostAndFoundOffice);

            _containerBrowser.ChangeViewMode += ChangeViewMode;

            pnlContainer.Controls.Add(_containerBrowser);

            _containerSolarSystem.OnBrowserNavigate        += Event_BrowserNavigate;
            _containerPilotInfo.OnBrowserNavigate          += Event_BrowserNavigate;
            _containerSolarSystemOffline.OnBrowserNavigate += Event_BrowserNavigate;

            _containerBrowser.ParentWindow = this;
        }
Ejemplo n.º 2
0
        public whlTravelHistory(DelegateShowLocation delegateShowLocation)
        {
            InitializeComponent();

            _delegateShowLocation = delegateShowLocation;
        }