Example #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);
                }
            }
        }
Example #2
0
        internal void Request(TActionComponent component)
        {
            component.ThrowNull();

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

            ComponentModelProperty.RequestModel(entityAction);

            TActionConverter.Select(TCategory.Registration, component, entityAction);
        }
Example #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);
        }
Example #4
0
 internal void RequestModel(TEntityAction action)
 {
     ComponentModelProperty.RequestModel(action);
 }
Example #5
0
        internal void RequestModel(TEntityAction entityAction)
        {
            entityAction.ThrowNull();

            ComponentModelProperty.RequestModel(entityAction);
        }