Ejemplo n.º 1
0
 private void InitializeComponent()
 {
     this.module1                  = new DevExpress.ExpressApp.SystemModule.SystemModule();
     this.module2                  = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule();
     this.module3                  = new RuntimeDbChooser.Module.RuntimeDbChooserModule();
     this.module4                  = new RuntimeDbChooser.Module.Web.RuntimeDbChooserAspNetModule();
     this.securityModule1          = new DevExpress.ExpressApp.Security.SecurityModule();
     this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
     this.authenticationStandard1  = new DevExpress.ExpressApp.Security.AuthenticationStandard();
     this.validationModule         = new DevExpress.ExpressApp.Validation.ValidationModule();
     this.validationAspNetModule   = new DevExpress.ExpressApp.Validation.Web.ValidationAspNetModule();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // securityStrategyComplex1
     //
     this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
     this.securityStrategyComplex1.RoleType       = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemRole);
     this.securityStrategyComplex1.UserType       = typeof(DevExpress.ExpressApp.Security.Strategy.SecuritySystemUser);
     //
     // authenticationStandard1
     //
     this.authenticationStandard1.LogonParametersType = typeof(RuntimeDbChooser.Module.BusinessObjects.CustomLogonParametersForStandardAuthentication);
     //
     // validationModule
     //
     this.validationModule.AllowValidationDetailsAccess     = true;
     this.validationModule.IgnoreWarningAndInformationRules = false;
     //
     // RuntimeDbChooserAspNetApplication
     //
     this.ApplicationName                  = "RuntimeDbChooser";
     this.CheckCompatibilityType           = DevExpress.ExpressApp.CheckCompatibilityType.DatabaseSchema;
     this.LinkNewObjectToParentImmediately = false;
     this.Modules.Add(this.module1);
     this.Modules.Add(this.module2);
     this.Modules.Add(this.validationModule);
     this.Modules.Add(this.securityModule1);
     this.Modules.Add(this.module3);
     this.Modules.Add(this.validationAspNetModule);
     this.Modules.Add(this.module4);
     this.Security = this.securityStrategyComplex1;
     this.DatabaseVersionMismatch += new System.EventHandler <DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs>(this.RuntimeDbChooserAspNetApplication_DatabaseVersionMismatch);
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }
 private void InitializeComponent()
 {
     this.module1                  = new DevExpress.ExpressApp.SystemModule.SystemModule();
     this.module2                  = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule();
     this.module3                  = new RuntimeDbChooser.Module.RuntimeDbChooserModule();
     this.module4                  = new RuntimeDbChooser.Module.Web.RuntimeDbChooserAspNetModule();
     this.securityModule1          = new DevExpress.ExpressApp.Security.SecurityModule();
     this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
     this.securityStrategyComplex1.SupportNavigationPermissionsForTypes = false;
     this.authenticationStandard1 = new DevExpress.ExpressApp.Security.AuthenticationStandard();
     this.validationModule        = new DevExpress.ExpressApp.Validation.ValidationModule();
     this.validationAspNetModule  = new DevExpress.ExpressApp.Validation.Web.ValidationAspNetModule();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // securityStrategyComplex1
     //
     this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
     this.securityStrategyComplex1.RoleType       = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyRole);
     this.securityStrategyComplex1.UserType       = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser);
     //
     // securityModule1
     //
     this.securityModule1.UserType = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyUser);
     //
     // authenticationStandard1
     //
     this.authenticationStandard1.LogonParametersType = typeof(RuntimeDbChooser.Module.BusinessObjects.CustomLogonParametersForStandardAuthentication);
     //
     // RuntimeDbChooserAspNetApplication
     //
     this.ApplicationName        = "RuntimeDbChooser";
     this.CheckCompatibilityType = DevExpress.ExpressApp.CheckCompatibilityType.DatabaseSchema;
     this.Modules.Add(this.module1);
     this.Modules.Add(this.module2);
     this.Modules.Add(this.module3);
     this.Modules.Add(this.module4);
     this.Modules.Add(this.securityModule1);
     this.Security = this.securityStrategyComplex1;
     this.Modules.Add(this.validationModule);
     this.Modules.Add(this.validationAspNetModule);
     this.DatabaseVersionMismatch += new System.EventHandler <DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs>(this.RuntimeDbChooserAspNetApplication_DatabaseVersionMismatch);
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }