Beispiel #1
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            this.RegisterViewsAndServices();

            IProjectViewPresenter presenter = this.container.Resolve <IProjectViewPresenter>();

            this.regionManager.RegisterViewWithRegionInIndex(RegionNames.ToolsRegion, presenter.View, 5);
        }
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            this.RegisterViewsAndServices();

            IProjectViewPresenter presenter = this.container.Resolve <IProjectViewPresenter>();

            bool shouldDisplayPlayerWindow = this.windowManager.ShouldDisplayWindow(presenter.View.GetType().ToString(), false);

            if (shouldDisplayPlayerWindow)
            {
                this.regionManager.Regions[RegionNames.MainRegion].Add(presenter.View);
            }

            IMenuButtonViewModel menuViewModel = this.container.Resolve <IMenuButtonViewModel>();

            menuViewModel.ViewToDisplay = presenter.View;
            menuViewModel.Text          = "Project List";
            menuViewModel.IsViewActive  = shouldDisplayPlayerWindow;

            this.regionManager.Regions[RegionNames.MenuRegion].Add(menuViewModel.View);
        }