Exemplo n.º 1
0
        internal void RequestModel(TEntityAction action)
        {
            if (action.NotNull())
            {
                action.SelectCategoryType(TCategoryType.Create(TCategory.Target));
                action.CollectionAction.ExtensionNodeCollection.Clear();

                ComponentModelProperty.RequestModel(action);

                if (action.SupportAction.SelectionInfo.Tag is Guid materialId)
                {
                    action.ModelAction.ComponentStatusModel.UseNodeModel = true;
                    action.ModelAction.ComponentStatusModel.NodeReverse  = true;

                    //  Here gadget Material must be Parent
                    action.ModelAction.ExtensionNodeModel.ChildId        = ComponentModelProperty.Id;
                    action.ModelAction.ExtensionNodeModel.ChildCategory  = TCategoryType.ToValue(TCategory.Target);
                    action.ModelAction.ExtensionNodeModel.ParentId       = materialId;
                    action.ModelAction.ExtensionNodeModel.ParentCategory = TCategoryType.ToValue(TCategory.Material);

                    // update collection
                    action.CollectionAction.ExtensionNodeCollection.Add(action.ModelAction.ExtensionNodeModel);
                }
            }
        }
Exemplo n.º 2
0
        internal void Request(TActionComponent component)
        {
            component.ThrowNull();

            var entityAction = TEntityAction.Create(TCategory.Registration);

            ComponentModelProperty.RequestModel(entityAction);

            TActionConverter.Select(TCategory.Registration, component, entityAction);
        }
Exemplo n.º 3
0
        internal bool RequestModel(TEntityAction action)
        {
            if (action.NotNull())
            {
                ComponentModelProperty.RequestModel(action);

                if (action.Param1 is TActionComponent component)
                {
                    var gadget = component.Models.GadgetResultModel;

                    if (gadget.HasRegistration)
                    {
                        if (m_Registration.Contains(gadget.RegistrationId).IsFalse())
                        {
                            gadget.RequestContent(m_Registration);
                        }
                    }
                }

                return(ValidateProperty());
            }

            return(false);
        }
Exemplo n.º 4
0
 internal void RequestModel(TEntityAction action)
 {
     ComponentModelProperty.RequestModel(action);
 }
Exemplo n.º 5
0
        internal void RequestModel(TEntityAction entityAction)
        {
            entityAction.ThrowNull();

            ComponentModelProperty.RequestModel(entityAction);
        }