Exemplo n.º 1
0
 private void InitializeComponent()
 {
     _module1 = new SystemModule();
     _module2 = new SystemAspNetModule();
     _securityStrategyComplex1 = new SecurityStrategyComplex();
     _authenticationStandard1  = new AuthenticationStandard();
     _module4                     = new XtraDashboardTesterAspNetModule();
     _sqlConnection1              = new SqlConnection();
     _validationModule1           = new ValidationModule();
     _dashboardModule1            = new DashboardModule();
     _validationAspNetModule1     = new ValidationAspNetModule();
     _xtraDashboardWebModule1     = new XtraDashboardWebModule();
     _scriptRecorderModuleBase1   = new ScriptRecorderModuleBase();
     _scriptRecorderAspNetModule1 = new ScriptRecorderAspNetModule();
     _moduleModule1               = new ModuleModule();
     ((ISupportInitialize)this).BeginInit();
     //
     // _securityStrategyComplex1
     //
     _securityStrategyComplex1.Authentication = _authenticationStandard1;
     _securityStrategyComplex1.RoleType       = typeof(XpandPermissionPolicyRole);
     _securityStrategyComplex1.UserType       = typeof(PermissionPolicyUser);
     //
     // _authenticationStandard1
     //
     _authenticationStandard1.LogonParametersType = typeof(AuthenticationStandardLogonParameters);
     //
     // _sqlConnection1
     //
     _sqlConnection1.ConnectionString =
         "Integrated Security=SSPI;Pooling=false;Data Source=.\\SQLEXPRESS;Initial Catalog=X" +
         "traDashboardTester";
     _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
     //
     // validationModule1
     //
     _validationModule1.AllowValidationDetailsAccess     = true;
     _validationModule1.IgnoreWarningAndInformationRules = false;
     //
     // XtraDashboardTesterAspNetApplication
     //
     ApplicationName = "XtraDashboardTester";
     Connection      = _sqlConnection1;
     Modules.Add(_module1);
     Modules.Add(_module2);
     Modules.Add(_validationModule1);
     Modules.Add(_dashboardModule1);
     Modules.Add(_validationAspNetModule1);
     Modules.Add(_xtraDashboardWebModule1);
     Modules.Add(_scriptRecorderModuleBase1);
     Modules.Add(_scriptRecorderAspNetModule1);
     Modules.Add(_moduleModule1);
     Modules.Add(_module4);
     Security = _securityStrategyComplex1;
     ((ISupportInitialize)this).EndInit();
 }
Exemplo n.º 2
0
        private void InitializeComponent()
        {
            _module1                         = new SystemModule();
            _module2                         = new SystemAspNetModule();
            _module5                         = new ValidationModule();
            _module6                         = new BusinessClassLibraryCustomizationModule();
            _securityModule1                 = new SecurityModule();
            _sqlConnection1                  = new SqlConnection();
            _securityComplex1                = new SecurityStrategyComplex();
            _authenticationStandard1         = new XpandAuthenticationStandard();
            _featureCenterModule1            = new FeatureCenterModule();
            _cloneObjectModule1              = new CloneObjectModule();
            _viewVariantsModule1             = new ViewVariantsModule();
            _pivotChartModuleBase1           = new PivotChartModuleBase();
            _scriptRecorderModuleBase1       = new ScriptRecorderModuleBase();
            _featureCenterAspNetModule1      = new FeatureCenterAspNetModule();
            _pivotChartAspNetModule1         = new PivotChartAspNetModule();
            _fileAttachmentsAspNetModule1    = new FileAttachmentsAspNetModule();
            _conditionalAppearanceModule1    = new ConditionalAppearanceModule();
            _kpiModule1                      = new KpiModule();
            _workflowModule1                 = new WorkflowModule();
            _htmlPropertyEditorAspNetModule1 = new HtmlPropertyEditorAspNetModule();
            _treeListEditorsAspNetModule1    = new TreeListEditorsAspNetModule();
            _schedulerModuleBase1            = new SchedulerModuleBase();
            _schedulerAspNetModule1          = new SchedulerAspNetModule();
            _stateMachineModule1             = new StateMachineModule();
            _treeListEditorsModuleBase2      = new TreeListEditorsModuleBase();
            ((ISupportInitialize)this).BeginInit();
            //
            // module5
            //
            _module5.AllowValidationDetailsAccess     = true;
            _module5.IgnoreWarningAndInformationRules = false;
            //
            // securityModule1
            //
            _securityModule1.UserType = typeof(SecuritySystemUser);
            //
            // sqlConnection1
            //
            _sqlConnection1.ConnectionString =
                "Data Source=(local);Initial Catalog=XpandFeatureCenter;Integrated Security=SSPI;P" +
                "ooling=false";
            _sqlConnection1.FireInfoMessageEventOnUserErrors = false;
            //
            // securityComplex1
            //
            _securityComplex1.Authentication = _authenticationStandard1;
            _securityComplex1.RoleType       = typeof(XpandRole);
            _securityComplex1.UserType       = typeof(SecuritySystemUser);
            //
            // authenticationStandard1
            //
            _authenticationStandard1.LogonParametersType = typeof(XpandLogonParameters);
            //
            // viewVariantsModule1
            //
            _viewVariantsModule1.FrameVariantsEngine = null;
            _viewVariantsModule1.VariantsProvider    = null;
            //
            // pivotChartModuleBase1
            //
            _pivotChartModuleBase1.ShowAdditionalNavigation = false;
            //
            // workflowModule1
            //
            _workflowModule1.RunningWorkflowInstanceInfoType   = typeof(XpoRunningWorkflowInstanceInfo);
            _workflowModule1.StartWorkflowRequestType          = typeof(XpoStartWorkflowRequest);
            _workflowModule1.UserActivityVersionType           = typeof(XpoUserActivityVersion);
            _workflowModule1.WorkflowControlCommandRequestType = typeof(XpoWorkflowInstanceControlCommandRequest);
            _workflowModule1.WorkflowDefinitionType            = typeof(XpoWorkflowDefinition);
            _workflowModule1.WorkflowInstanceKeyType           = typeof(XpoInstanceKey);
            _workflowModule1.WorkflowInstanceType = typeof(XpoWorkflowInstance);
            //
            // reportsModule1
            //

            //
            // stateMachineModule1
            //
            _stateMachineModule1.StateMachineStorageType = typeof(XpoStateMachine);
            //
            // FeatureCenterAspNetApplication
            //
            ApplicationName = "FeatureCenter";
            Connection      = _sqlConnection1;
            Modules.Add(_module1);
            Modules.Add(_module2);
            Modules.Add(_module5);
            Modules.Add(_module6);
            Modules.Add(_securityModule1);
            Modules.Add(_cloneObjectModule1);
            Modules.Add(_viewVariantsModule1);
            Modules.Add(_conditionalAppearanceModule1);
            Modules.Add(_pivotChartModuleBase1);
            Modules.Add(_scriptRecorderModuleBase1);
            Modules.Add(_kpiModule1);
            Modules.Add(_workflowModule1);
            Modules.Add(_stateMachineModule1);
            Modules.Add(_featureCenterModule1);
            Modules.Add(_pivotChartAspNetModule1);
            Modules.Add(_fileAttachmentsAspNetModule1);
            Modules.Add(_htmlPropertyEditorAspNetModule1);

            Modules.Add(_treeListEditorsModuleBase2);
            Modules.Add(_treeListEditorsAspNetModule1);
            Modules.Add(_schedulerModuleBase1);
            Modules.Add(_schedulerAspNetModule1);
            Modules.Add(_featureCenterAspNetModule1);
            Security = _securityComplex1;
            DatabaseVersionMismatch += AspNetApplicationDatabaseVersionMismatch;
            ((ISupportInitialize)this).EndInit();
        }