示例#1
0
        public IPageManager Apply()
        {
            if (listView == null)
            {
                listView               = resolverFactory.Resolve <UCIndexesListView>();
                listView.Id            = "QzqMws4HH0GfDcDn/K8JRQ==";
                listView.ControlName   = "attributes_list_management";
                listView.ControlHeader = "Attributes";
                listView.Description   = "List of Attributes";
                listView.SetIndexType(EntityType.Attribute);
            }

            if (content == null)
            {
                content               = resolverFactory.Resolve <UCIndexDetail>();
                content.Id            = "EFp0ZhUYMkSo3SY5Y6y7AA==";
                content.ControlName   = "attribute_detail_management";
                content.ControlHeader = "Manage Attribute";
                content.Description   = "Manage Attribute Detail";
                content.ActivatedById = "QzqMws4HH0GfDcDn/K8JRQ==";
                content.SetIndexType(EntityType.Attribute);
            }

            eventAggregator.GetEvent <AddPageEvent>().Publish(new AddPageEventArgument
            {
                PageDefinition = listView
            });

            eventAggregator.GetEvent <AddPageEvent>().Publish(new AddPageEventArgument
            {
                PageDefinition = content
            });
            return(this);
        }
示例#2
0
        public IPageManager Apply()
        {
            if (listView == null)
            {
                listView               = resolverFactory.Resolve <UCIndexesListView>();
                listView.Id            = "lS2j9IRSTE+c8TFL7LFgZA==";
                listView.ControlName   = "entities_list_management";
                listView.ControlHeader = "Entities";
                listView.Description   = "List of Entities";
                listView.SetIndexType(EntityType.Entity);
            }

            if (content == null)
            {
                content               = resolverFactory.Resolve <UCIndexDetail>();
                content.Id            = "1JFIy8jqlU2LKbwoDkCc7g==";
                content.ControlName   = "entity_detail_management";
                content.ControlHeader = "Manage Entity";
                content.Description   = "Manage Entity Detail";
                content.ActivatedById = listView.Id;
                content.SetIndexType(EntityType.Entity);
            }

            eventAggregator.GetEvent <AddPageEvent>().Publish(new AddPageEventArgument
            {
                PageDefinition = listView
            });

            eventAggregator.GetEvent <AddPageEvent>().Publish(new AddPageEventArgument
            {
                PageDefinition = content
            });
            return(this);
        }