예제 #1
0
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     var registrator = new ValidationRulesRegistrator(moduleManager);
     registrator.RegisterRule(typeof(RuleRequiredForAtLeast1Property), typeof(IRuleRequiredForAtLeast1PropertyProperties));
     registrator.RegisterRule(typeof(RuleFromIPropertyValueValidator), typeof(IRuleFromIPropertyValueValidatorProperties));
 }
예제 #2
0
        public override void Setup(ApplicationModulesManager moduleManager)
        {
            base.Setup(moduleManager);
            var registrator = new ValidationRulesRegistrator(moduleManager);

            registrator.RegisterRule(typeof(RuleRequiredForAtLeast1Property), typeof(IRuleRequiredForAtLeast1PropertyProperties));
            registrator.RegisterRule(typeof(RuleFromIPropertyValueValidator), typeof(IRuleFromIPropertyValueValidatorProperties));
        }
예제 #3
0
파일: Module.cs 프로젝트: kevinbarja/spock
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     ValidationRulesRegistrator.RegisterRule(moduleManager,
                                             typeof(RequiredField),
                                             typeof(IRequiredFieldProperties));
 }
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     ValidationRulesRegistrator.RegisterRule(moduleManager,
                                             typeof(PasswordStrengthCodeRule),
                                             typeof(IRuleBaseProperties));
 }
예제 #5
0
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     ValidationRulesRegistrator.RegisterRule(moduleManager,
                                             typeof(ClaveFuerte),
                                             typeof(IRuleBaseProperties));
 }
예제 #6
0
        public override void Setup(ApplicationModulesManager moduleManager)
        {
            base.Setup(moduleManager);

            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(RuleDocumentoValido), typeof(IRuleBaseProperties));
            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(RuleDocumentoItemValido), typeof(IRuleBaseProperties));
        }
예제 #7
0
        public override void Setup(ApplicationModulesManager moduleManager)
        {
            base.Setup(moduleManager);

            // register my code rules
            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(GenLedgerRule), typeof(IRuleBaseProperties));
            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(ForexTradeRule), typeof(IRuleBaseProperties));
        }
예제 #8
0
        public override void Setup(ApplicationModulesManager moduleManager)
        {
            base.Setup(moduleManager);
            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(RuleRequiredForAtLeast1Property),
                                                    typeof(IRuleRequiredForAtLeast1PropertyProperties));
//            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(RuleValidFileName),
//                                     typeof(IRuleValidFileNameProperties));
            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(RuleFromIPropertyValueValidator),
                                                    typeof(IRuleFromIPropertyValueValidatorProperties));
        }
예제 #9
0
        public override void Setup(ApplicationModulesManager moduleManager)
        {
            base.Setup(moduleManager);

            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(DispServiceListValueRule), typeof(IRuleBaseProperties));
            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(PacientValueRule), typeof(IRuleBaseProperties));
            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(PacientDocumentValueRule), typeof(IRuleBaseProperties));
            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(PacientPolisValueRule), typeof(IRuleBaseProperties));
            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(DSValueRule), typeof(IRuleBaseProperties));
            ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(EditableProtocolValueRule), typeof(IRuleBaseProperties));
        }
예제 #10
0
파일: Module.cs 프로젝트: xyyhqq/eXpand
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     AddToAdditionalExportedTypes(BaseImplNameSpace);
     ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(RuleClassInfoMerge),
                                             typeof(IRuleBaseProperties));
     ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(RuleValidCodeIdentifier),
                                             typeof(IRuleBaseProperties));
     if (Application != null && (RuntimeMode || !string.IsNullOrEmpty(ConnectionString)))
     {
         AddPersistentModules(moduleManager);
         RegisterDerivedTypes();
         Application.LoggedOn      += ApplicationOnLoggedOn;
         Application.SetupComplete += ApplicationOnSetupComplete;
     }
 }
예제 #11
0
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(RuleMemberPermissionsCriteria), typeof(IRuleBaseProperties));
     ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(RuleObjectPermissionsCriteria), typeof(IRuleBaseProperties));
 }
예제 #12
0
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     this.AddSecurityObjectsToAdditionalExportedTypes("Xpand.Persistent.BaseImpl.ModelDifference");
     ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(XmlContentCodeRule), typeof(IRuleBaseProperties));
 }
예제 #13
0
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(FeatureCenter.Module.Validation.RuleStringLengthComparison), typeof(FeatureCenter.Module.Validation.IRuleStringLengthComparisonProperties));
     ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(FeatureCenter.Module.Validation.CodeRuleObjectIsValidRule), typeof(DevExpress.Persistent.Validation.IRuleBaseProperties));
 }
예제 #14
0
파일: Module.cs 프로젝트: windygu/Xafology
 public override void Setup(ApplicationModulesManager moduleManager)
 {
     base.Setup(moduleManager);
     ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(Rules.PivotGridSavedLayoutSaveRule), typeof(IRuleBaseProperties));
     ValidationRulesRegistrator.RegisterRule(moduleManager, typeof(PivotGridSavedLayoutDeleteRule), typeof(IRuleBaseProperties));
 }