コード例 #1
0
ファイル: WebApplication.cs プロジェクト: aries544/eXpand
        private void InitializeComponent() {
            this.module1 = new DevExpress.ExpressApp.SystemModule.SystemModule();
            this.module2 = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule();
            this.module3 = new Xpand.ExpressApp.Module.NHibernateIntegrationModule();
            this.module4 = new Xpand.ExpressApp.Module.Web.NHibernateIntegrationAspNetModule();
            this.securityModule1 = new DevExpress.ExpressApp.Security.SecurityModule();
            this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
            this.authenticationStandard1 = new DevExpress.ExpressApp.Security.AuthenticationStandard();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // securityModule1
            // 
            this.securityModule1.UserType = typeof(User);
            // 
            // securityStrategyComplex1
            // 
            this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
            this.securityStrategyComplex1.RoleType = typeof(Role);
            this.securityStrategyComplex1.UserType = typeof(User);
            // 
            // authenticationStandard1
            // 
            this.authenticationStandard1.LogonParametersType = typeof(DevExpress.ExpressApp.Security.AuthenticationStandardLogonParameters);
            // 
            // NHibernateIntegrationAspNetApplication
            // 
            this.ApplicationName = "NHibernateIntegration";
            this.CollectionsEditMode = DevExpress.ExpressApp.Editors.ViewEditMode.Edit;
            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.DatabaseVersionMismatch += new System.EventHandler<DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs>(this.NHibernateIntegrationAspNetApplication_DatabaseVersionMismatch);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

        }
コード例 #2
0
 private void InitializeComponent()
 {
     this.module1                  = new DevExpress.ExpressApp.SystemModule.SystemModule();
     this.module2                  = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule();
     this.module3                  = new Xpand.ExpressApp.Module.NHibernateIntegrationModule();
     this.module4                  = new Xpand.ExpressApp.Module.Web.NHibernateIntegrationAspNetModule();
     this.securityModule1          = new DevExpress.ExpressApp.Security.SecurityModule();
     this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex();
     this.authenticationStandard1  = new DevExpress.ExpressApp.Security.AuthenticationStandard();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     //
     // securityModule1
     //
     this.securityModule1.UserType = typeof(User);
     //
     // securityStrategyComplex1
     //
     this.securityStrategyComplex1.Authentication = this.authenticationStandard1;
     this.securityStrategyComplex1.RoleType       = typeof(Role);
     this.securityStrategyComplex1.UserType       = typeof(User);
     //
     // authenticationStandard1
     //
     this.authenticationStandard1.LogonParametersType = typeof(DevExpress.ExpressApp.Security.AuthenticationStandardLogonParameters);
     //
     // NHibernateIntegrationAspNetApplication
     //
     this.ApplicationName     = "NHibernateIntegration";
     this.CollectionsEditMode = DevExpress.ExpressApp.Editors.ViewEditMode.Edit;
     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.DatabaseVersionMismatch += new System.EventHandler <DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs>(this.NHibernateIntegrationAspNetApplication_DatabaseVersionMismatch);
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 }