protected override void CustomizeModelApplicationCreatorProperties(ModelApplicationCreatorProperties creatorProperties) { base.CustomizeModelApplicationCreatorProperties(creatorProperties); lock (_lockObject) { if (_instanceModelApplicationCreatorPropertiesManager == null) _instanceModelApplicationCreatorPropertiesManager = ValueManager.CreateValueManager<ModelApplicationCreatorProperties>(); if (_instanceModelApplicationCreatorPropertiesManager.Value == null || _instanceModelApplicationCreatorPropertiesManager.Value != creatorProperties) _instanceModelApplicationCreatorPropertiesManager.Value = creatorProperties; } }
protected override void CustomizeModelApplicationCreatorProperties(ModelApplicationCreatorProperties creatorProperties) { base.CustomizeModelApplicationCreatorProperties(creatorProperties); creatorProperties.RegisterObject(typeof(IModelRuleBase), typeof(RuleRequiredForAtLeast1Property), typeof(IRuleRequiredForAtLeast1PropertyProperties)); creatorProperties.RegisterObject(typeof(IModelRuleBase), typeof(RuleFromIPropertyValueValidator), typeof(IRuleFromIPropertyValueValidatorProperties)); }