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);
        }
Exemple #2
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);
        }
Exemple #3
0
        public EntityPageManager(
            IEventAggregator eventAggregator,
            UCIndexesListView listView,
            UCIndexDetail content)
        {
            this.eventAggregator        = eventAggregator;
            this.listView               = listView;
            this.listView.Id            = "lS2j9IRSTE+c8TFL7LFgZA==";
            this.listView.ControlName   = "entities_list_management";
            this.listView.ControlHeader = "Entities";
            this.listView.Description   = "List of Entities";
            this.content               = content;
            this.content.Id            = "1JFIy8jqlU2LKbwoDkCc7g==";
            this.content.ControlName   = "entity_detail_management";
            this.content.ControlHeader = "Manage Entity";
            this.content.Description   = "Manage Entity Detail";
            this.content.ActivatedById = "lS2j9IRSTE+c8TFL7LFgZA==";

            this.listView.SetIndexType(EntityType.Entity);
            this.content.SetIndexType(EntityType.Entity);
        }
        public AttributePageManager(
            IEventAggregator eventAggregator,
            // TODO: SHOULD LOAD VIEWS ON DEMANDS
            UCIndexesListView listView,
            UCIndexDetail content)
        {
            this.eventAggregator        = eventAggregator;
            this.listView               = listView;
            this.listView.Id            = "QzqMws4HH0GfDcDn/K8JRQ==";
            this.listView.ControlName   = "attributes_list_management";
            this.listView.ControlHeader = "Attributes";
            this.listView.Description   = "List of Attributes";
            this.content               = content;
            this.content.Id            = "EFp0ZhUYMkSo3SY5Y6y7AA==";
            this.content.ControlName   = "attribute_detail_management";
            this.content.ControlHeader = "Manage Attribute";
            this.content.Description   = "Manage Attribute Detail";
            this.content.ActivatedById = "QzqMws4HH0GfDcDn/K8JRQ==";

            this.listView.SetIndexType(EntityType.Attribute);
            this.content.SetIndexType(EntityType.Attribute);
        }