Exemple #1
0
        internal void SelectModel(TActionComponent component)
        {
            component.ThrowNull();

            if (component.IsCategory(TCategory.Registration))
            {
                var entityAction = TEntityAction.Create(TCategory.Registration);
                TActionConverter.Request(TCategory.Registration, component, entityAction);

                ComponentModelProperty.SelectModel(entityAction);
            }
        }
        internal void SelectModel(TActionComponent component)
        {
            component.ThrowNull();

            GadgetModel.Models.GadgetMaterialModel.CopyFrom(component.Models.GadgetMaterialModel);

            var entityAction = TEntityAction.CreateDefault;

            TActionConverter.Request(TCategory.Material, component, entityAction);

            ComponentModelProperty.SelectModel(entityAction);
        }
Exemple #3
0
    void RequestModelDispatcher (TEntityAction action)
    {
      if (action.NotNull ()) {
        var component = TActionComponent.Create (TCategory.Result);
        Model.Request (component);

        TActionConverter.Request (TCategory.Result, component, action);
        action.Param1 = component;

        // to Sibling
        var message = new TFactorySiblingMessageInternal (TInternalMessageAction.Response, TChild.List, TypeInfo);
        message.Support.Argument.Types.Select (action);

        DelegateCommand.PublishInternalMessage.Execute (message);
      }
    }
        internal bool EditEnter(TActionComponent component)
        {
            var res = false;

            if (component.NotNull())
            {
                var entityAction = TEntityAction.CreateDefault;
                TActionConverter.Request(TCategory.Test, component, entityAction);

                ComponentModelProperty.SelectModel(entityAction);

                ValidateProperty();

                res = component.Models.GadgetTestModel.ValidateId;
            }

            return(res);
        }
Exemple #5
0
        internal bool EditEnter(TActionComponent component)
        {
            component.ThrowNull();

            var entityAction = TEntityAction.CreateDefault;

            TActionConverter.Request(TCategory.Target, component, entityAction);

            // update Material selection
            var tag = component.Models.GadgetTargetModel.MaterialId;

            entityAction.SupportAction.SelectionInfo.Select(component.Models.GadgetTargetModel.Material, tag, enabled: component.Models.GadgetTargetModel.Enabled);

            ComponentModelProperty.SelectModel(entityAction);
            ComponentModelProperty.SelectionLock(component.Models.GadgetTargetModel.Busy);

            return(component.Models.GadgetTargetModel.ValidateId);
        }
    void ModifyCommandDispatcher ()
    {
      var component = TActionComponent.Create (TCategory.Result);
      Model.Request (component);

      var gadget = component.Models.GadgetResultModel;

      var action = TEntityAction.Create (TCategory.Result);
      action.Id = gadget.Id;

      TActionConverter.Request (TCategory.Result, component, action);

      // Result - Change - Content
      var entityAction = TEntityAction.Create (TCategory.Result, TOperation.Change, TExtension.Content);
      entityAction.CollectionAction.EntityCollection.Add (gadget.Id, action);

      // to parent
      var message = new TFactoryMessageInternal (TInternalMessageAction.Request, TChild.List, TypeInfo);
      message.Support.Argument.Types.Select (entityAction);

      DelegateCommand.PublishInternalMessage.Execute (message);
    }
        internal void EditEnter(TActionComponent component)
        {
            if (component.NotNull())
            {
                if (component.IsCategory(TCategory.Result))
                {
                    var gadget = component.Models.GadgetResultModel;

                    if (gadget.HasRegistration)
                    {
                        gadget.RequestContent(m_Registration);
                    }

                    var entityAction = TEntityAction.CreateDefault;
                    TActionConverter.Request(TCategory.Result, component, entityAction);

                    ComponentModelProperty.SelectModel(entityAction);

                    ValidateProperty();
                }
            }
        }
        internal void ModifyEnter(TActionComponent component)
        {
            if (component.NotNull())
            {
                if (component.IsCategory(TCategory.Result))
                {
                    var gadget = component.Models.GadgetResultModel;

                    if (gadget.HasRegistration)
                    {
                        gadget.RequestContent(m_Registration);
                    }

                    var entityAction = TEntityAction.CreateDefault;
                    TActionConverter.Request(TCategory.Result, component, entityAction);

                    ComponentModelProperty.SelectModel(entityAction);
                    ComponentModelProperty.ValidateModel(validated: false);
                    ComponentModelProperty.IsComponentModelEnabled = false;
                    ComponentModelProperty.IsExtensionModelEnabled = false;
                }
            }
        }