Beispiel #1
0
        /// <summary>
        /// Builds the pages from view reference.
        /// </summary>
        public override void BuildPagesFromViewReference()
        {
            UPDataSyncPageModelController pageModelController = new UPDataSyncPageModelController();
            UPMOrganizer dataSynchronizationOrganizer         = new UPMOrganizer(StringIdentifier.IdentifierWithStringId("DataSynchronization"));

            this.ShouldShowTabsForSingleTab = false;
            this.AddPageModelController(pageModelController);
            dataSynchronizationOrganizer.AddPage(pageModelController.Page);
            this.TopLevelElement = dataSynchronizationOrganizer;
        }
Beispiel #2
0
        /// <summary>
        /// Builds this instance.
        /// </summary>
        public void Build()
        {
            var store         = ConfigurationUnitStore.DefaultStore;
            var startMenuName = store.ConfigValue(KeyStartPage);

            if (!string.IsNullOrWhiteSpace(startMenuName))
            {
                var startMenuItem = store.MenuByName(startMenuName);
                if (startMenuItem != null)
                {
                    startMenu = startMenuItem;
                }
            }

            var organizer = new UPMAdvancedSearchOrganizer(StringIdentifier.IdentifierWithStringId(ApplictionModelIdentifier))
            {
                ExpandFound                  = true,
                DisplaysTitleText            = false,
                LineCountAdditionalTitletext = 0,
                DisplaysImage                = false,
                Invalid = false
            };

            TopLevelElement             = organizer;
            DataSyncPageModelController = new UPDataSyncPageModelController();
            GlobalActions = new List <UPMGlobalAction>();
            var menu = ConfigurationUnitStore.DefaultStore.MenuByName(MenuAppSearch);

            if (menu != null)
            {
                PopulateSubMenusFromMenu(menu, organizer);
            }
            else
            {
                PopulateSubMenus(organizer, store, startMenuName);
            }

            PopulateGlobalMenuSubMenus();

            if (startMenu != null)
            {
                SetStartOrganizerModelController();
            }
            else
            {
                throw new InvalidOperationException(ExceptionNoStartOrganizer);
            }

            var crmStore = UPCRMDataStore.DefaultStore;
        }