-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
WinModule.cs
41 lines (36 loc) 路 1.37 KB
/
WinModule.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Updating;
using FeatureCenter.Module.Win;
using Xpand.Persistent.Base.General;
using Xpand.Utils.Helpers;
namespace SecurityDemo.Module.Win
{
[ToolboxItemFilter("Xaf.Platform.Win")]
public sealed partial class SecurityDemoWindowsFormsModule : ModuleBase
{
public SecurityDemoWindowsFormsModule()
{
InitializeComponent();
}
public override void Setup(ApplicationModulesManager moduleManager){
base.Setup(moduleManager);
var xpandDLLPath = Path.GetFullPath(AppDomain.CurrentDomain.SetupInformation.ApplicationBase + @"..\..\..\..\..\..\..\xpand.dll\");
this.AddModules(xpandDLLPath);
}
public override ICollection<Type> GetXafResourceLocalizerTypes() {
ICollection<Type> result = new List<Type>();
result.Add(typeof(FeatureCenterMainFormTemplateLocalizer));
result.Add(typeof(FeatureCenterPopupFormTemplateLocalizer));
return result;
}
public override IEnumerable<ModuleUpdater> GetModuleUpdaters(IObjectSpace objectSpace, Version versionFromDB) {
return ModuleUpdater.EmptyModuleUpdaters;
}
}
}