Exemplo n.º 1
0
 void InitializeComponent() {
     module1 = new SystemModule();
     module2 = new SystemAspNetModule();
     module3 = new AuditTrailTesterModule();
     module4 = new AuditTrailTesterAspNetModule();
     sqlConnection1 = new SqlConnection();
     auditTrailModule1 = new AuditTrailModule();
     securityModule1 = new SecurityModule();
     validationModule1 = new ValidationModule();
     conditionalAppearanceModule1 = new ConditionalAppearanceModule();
     logicModule1 = new LogicModule();
     xpandAuditTrailModule1 = new XpandAuditTrailModule();
     securityStrategyComplex1 = new SecurityStrategyComplex();
     authenticationStandard1 = new AuthenticationStandard();
     ((ISupportInitialize) (this)).BeginInit();
     // 
     // sqlConnection1
     // 
     sqlConnection1.ConnectionString =
         "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=A" +
         "uditTrailTester";
     sqlConnection1.FireInfoMessageEventOnUserErrors = false;
     // 
     // auditTrailModule1
     // 
     auditTrailModule1.AuditDataItemPersistentType = typeof (AuditDataItemPersistent);
     // 
     // validationModule1
     // 
     validationModule1.AllowValidationDetailsAccess = true;
     // 
     // securityStrategyComplex1
     // 
     securityStrategyComplex1.Authentication = authenticationStandard1;
     securityStrategyComplex1.RoleType = typeof (XpandRole);
     securityStrategyComplex1.UserType = typeof (SecuritySystemUser);
     // 
     // authenticationStandard1
     // 
     authenticationStandard1.LogonParametersType = typeof (AuthenticationStandardLogonParameters);
     // 
     // AuditTrailTesterAspNetApplication
     // 
     ApplicationName = "AuditTrailTester";
     Connection = sqlConnection1;
     Modules.Add(module1);
     Modules.Add(module2);
     Modules.Add(auditTrailModule1);
     Modules.Add(securityModule1);
     Modules.Add(validationModule1);
     Modules.Add(conditionalAppearanceModule1);
     Modules.Add(logicModule1);
     Modules.Add(xpandAuditTrailModule1);
     Modules.Add(module3);
     Modules.Add(module4);
     Security = securityStrategyComplex1;
     DatabaseVersionMismatch += AuditTrailTesterAspNetApplication_DatabaseVersionMismatch;
     ((ISupportInitialize) (this)).EndInit();
 }
Exemplo n.º 2
0
        private void InitializeComponent() {
            _module1 = new SystemModule();
            _module2 = new SystemAspNetModule();
            _module3 = new ModelArtifactStateTesterModule();
            _sqlConnection1 = new SqlConnection();
            _validationModule1 = new ValidationModule();
            _xpandValidationModule1 = new XpandValidationModule();
            _securityModule1 = new SecurityModule();
            _conditionalAppearanceModule1 = new ConditionalAppearanceModule();
            _logicModule1 = new LogicModule();
            _modelArtifactStateModule1 = new ModelArtifactStateModule();
            ((ISupportInitialize) (this)).BeginInit();
            // 
            // _sqlConnection1
            // 
            _sqlConnection1.ConnectionString =
                "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=M" +
                "odelArtifactStateTester";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            // 
            // validationModule1
            // 
            _validationModule1.AllowValidationDetailsAccess = true;
            _validationModule1.IgnoreWarningAndInformationRules = false;
            // 
            // ModelArtifactStateTesterAspNetApplication
            // 
            ApplicationName = "ModelArtifactStateTester";
            Connection = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_validationModule1);
            Modules.Add(_xpandValidationModule1);
            Modules.Add(_securityModule1);
            Modules.Add(_conditionalAppearanceModule1);
            Modules.Add(_logicModule1);
            Modules.Add(_modelArtifactStateModule1);
            Modules.Add(_module3);
            ((ISupportInitialize) (this)).EndInit();

        }