示例#1
0
 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;
     }
 }
示例#2
0
 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));
 }