Beispiel #1
0
        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);
        }
Beispiel #2
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);
            }
        }
Beispiel #3
0
        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);
        }
Beispiel #4
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);
        }
Beispiel #5
0
        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();
                }
            }
        }
Beispiel #6
0
        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;
                }
            }
        }
Beispiel #7
0
 internal void SelectModel(TEntityAction action)
 {
     ComponentModelProperty.SelectModel(action);
 }