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); }
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 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); }
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); }
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; } } }
internal void SelectModel(TEntityAction action) { ComponentModelProperty.SelectModel(action); }