Example #1
0
 protected void AddToAdditionalExportedTypes(string nameSpaceName)
 {
     if (RuntimeMode)
     {
         var types = BaseImplAssembly.GetTypes().Where(type1 => (type1.Namespace + "").StartsWith(nameSpaceName));
         AdditionalExportedTypes.AddRange(types);
     }
 }
Example #2
0
 protected void AddToAdditionalExportedTypes(string[] types)
 {
     if (RuntimeMode)
     {
         var types1 = BaseImplAssembly.GetTypes().Where(type1 => types.Contains(type1.FullName));
         AdditionalExportedTypes.AddRange(types1);
     }
 }
Example #3
0
 protected void AddToAdditionalExportedTypes(string nameSpaceName, Assembly assembly)
 {
     if (RuntimeMode)
     {
         IEnumerable <Type> types =
             assembly.GetTypes()
             .Where(type1 => String.Join("", new[] { type1.Namespace }).StartsWith(nameSpaceName));
         AdditionalExportedTypes.AddRange(types);
     }
 }
Example #4
0
        public AptekaModule()
        {
            InitializeComponent();
            DevExpress.ExpressApp.Security.SecurityModule.UsedExportedTypes = DevExpress.Persistent.Base.UsedExportedTypes.Custom;
            AdditionalExportedTypes.Add(typeof(DevExpress.Persistent.BaseImpl.EF.Analysis));

            // Register entites from another assembly
            AdditionalExportedTypes.AddRange(
                ModuleHelper.CollectExportedTypesFromAssembly(
                    typeof(Invoice).Assembly,
                    type => type.Namespace.StartsWith("Apteka.Model.Entities")));
        }
Example #5
0
        public override void Setup(ApplicationModulesManager moduleManager)
        {
            base.Setup(moduleManager);
            AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(Assembly.GetAssembly(typeof(Analysis)), IsExportedType));
            AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(Assembly.GetAssembly(typeof(SequenceObject)), IsExportedType));
            AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(Assembly.GetAssembly(typeof(Customer)), IsExportedType));

            var modelDifferenceBaseModule = (ModelDifferenceModule)moduleManager.Modules.SingleOrDefault(mbase => mbase is ModelDifferenceModule);

            if (modelDifferenceBaseModule != null)
            {
                modelDifferenceBaseModule.CreateCustomModelDifferenceStore += ModelDifferenceBaseModuleOnCreateCustomModelDifferenceStore;
            }
        }
Example #6
0
 public XpandWorkFlowModule()
 {
     InitializeComponent();
     AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(GetType().Assembly, IsExportedType));
 }
Example #7
0
 public ExternalApplicationWindowsFormsModule()
 {
     AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(Assembly.GetAssembly(typeof(Xpand.Persistent.BaseImpl.ImportExport.ClassInfoGraphNode)), IsExportedType));
     InitializeComponent();
 }
Example #8
0
 public XpandWorkFlowModule()
 {
     RequiredModuleTypes.Add(typeof(WorkflowModule));
     RequiredModuleTypes.Add(typeof(ConditionalAppearanceModule));
     AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(GetType().Assembly, IsExportedType));
 }
Example #9
0
 public PolicyNormalModule()
 {
     InitializeComponent();
     BaseObject.OidInitializationMode = OidInitializationMode.AfterConstruction;
     AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(typeof(Human).Assembly, t => !t.ContainsGenericParameters));
 }