Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EasyTests for dynamically install all eXpandFrameowork Modules
- Loading branch information
1 parent
9cc36b4
commit 458a850
Showing
5 changed files
with
70 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
using System.IO; | ||
using System.Linq; | ||
using DevExpress.ExpressApp; | ||
using DevExpress.ExpressApp.SystemModule; | ||
using DevExpress.ExpressApp.Updating; | ||
|
||
namespace SecurityDemo.Module | ||
{ | ||
public sealed partial class SecurityDemoModule : ModuleBase | ||
{ | ||
static SecurityDemoModule() { | ||
DevExpress.ExpressApp.SystemModule.ObjectMethodActionsViewController.Enabled = false; | ||
namespace SecurityDemo.Module{ | ||
public sealed partial class SecurityDemoModule : ModuleBase{ | ||
static SecurityDemoModule(){ | ||
ObjectMethodActionsViewController.Enabled = false; | ||
} | ||
|
||
public SecurityDemoModule(){ | ||
InitializeComponent(); | ||
} | ||
public SecurityDemoModule() | ||
{ | ||
InitializeComponent(); | ||
|
||
public static string GetXpandDllPath(){ | ||
var xpandDLLPath = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; | ||
while (Directory.GetDirectories(xpandDLLPath).All(s => (new DirectoryInfo(s).Name + "").ToLower() != "xpand.dll")) { | ||
xpandDLLPath = Path.GetFullPath(xpandDLLPath + @"..\"); | ||
} | ||
xpandDLLPath += @"Xpand.dll"; | ||
return xpandDLLPath; | ||
} | ||
public override IEnumerable<ModuleUpdater> GetModuleUpdaters(IObjectSpace objectSpace, Version versionFromDB) { | ||
|
||
public override IEnumerable<ModuleUpdater> GetModuleUpdaters(IObjectSpace objectSpace, Version versionFromDB){ | ||
ModuleUpdater updater = new Updater(objectSpace, versionFromDB); | ||
return new ModuleUpdater[] { updater }; | ||
return new[]{updater}; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
@echo off | ||
call defines.bat | ||
%msbuild% Xpand.build /fl /p:configuration=debug; %* | ||
%msbuild% Xpand.build /fl /p:configuration=debug |