Esempio n. 1
0
 protected void AddToAdditionalExportedTypes(string nameSpaceName)
 {
     if (RuntimeMode)
     {
         var types = BaseImplAssembly.GetTypes().Where(type1 => (type1.Namespace + "").StartsWith(nameSpaceName));
         AdditionalExportedTypes.AddRange(types);
     }
 }
Esempio n. 2
0
 protected void AddToAdditionalExportedTypes(string[] types)
 {
     if (RuntimeMode)
     {
         var types1 = BaseImplAssembly.GetTypes().Where(type1 => types.Contains(type1.FullName));
         AdditionalExportedTypes.AddRange(types1);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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")));
        }
Esempio n. 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;
            }
        }
Esempio n. 6
0
 public XpandWorkFlowModule()
 {
     InitializeComponent();
     AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(GetType().Assembly, IsExportedType));
 }
Esempio n. 7
0
 public ExternalApplicationWindowsFormsModule()
 {
     AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(Assembly.GetAssembly(typeof(Xpand.Persistent.BaseImpl.ImportExport.ClassInfoGraphNode)), IsExportedType));
     InitializeComponent();
 }
Esempio n. 8
0
 public XpandWorkFlowModule()
 {
     RequiredModuleTypes.Add(typeof(WorkflowModule));
     RequiredModuleTypes.Add(typeof(ConditionalAppearanceModule));
     AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(GetType().Assembly, IsExportedType));
 }
Esempio n. 9
0
 public PolicyNormalModule()
 {
     InitializeComponent();
     BaseObject.OidInitializationMode = OidInitializationMode.AfterConstruction;
     AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(typeof(Human).Assembly, t => !t.ContainsGenericParameters));
 }