Пример #1
0
 private void InitializeComponent()
 {
     this.module1                  = new DevExpress.ExpressApp.SystemModule.SystemModule();
     this.module2                  = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule();
     this.module3                  = new Solution3.Module.Solution3Module();
     this.module4                  = new Solution3.Module.Web.Solution3AspNetModule();
     this.securityModule1          = new DevExpress.ExpressApp.Security.SecurityModule();
     this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
     this.securityStrategyComplex1.SupportNavigationPermissionsForTypes = false;
     this.authenticationActiveDirectory1 = new DevExpress.ExpressApp.Security.AuthenticationActiveDirectory();
     this.objectsModule          = new DevExpress.ExpressApp.Objects.BusinessClassLibraryCustomizationModule();
     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.authenticationActiveDirectory1;
     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);
     //
     // authenticationActiveDirectory1
     //
     this.authenticationActiveDirectory1.CreateUserAutomatically = true;
     this.authenticationActiveDirectory1.LogonParametersType     = null;
     //
     // Solution3AspNetApplication
     //
     this.ApplicationName        = "Solution3";
     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.objectsModule);
     this.Modules.Add(this.validationModule);
     this.Modules.Add(this.validationAspNetModule);
     this.DatabaseVersionMismatch += new System.EventHandler <DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs>(this.Solution3AspNetApplication_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 Solution3.Module.Solution3Module();
     this.module4 = new Solution3.Module.Web.Solution3AspNetModule();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // Solution3AspNetApplication
     //
     this.ApplicationName = "Solution3";
     this.Modules.Add(this.module1);
     this.Modules.Add(this.module2);
     this.Modules.Add(this.module3);
     this.Modules.Add(this.module4);
     this.DatabaseVersionMismatch += new System.EventHandler <DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs>(this.Solution3AspNetApplication_DatabaseVersionMismatch);
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }