本文整理汇总了C#中ApplicationModulesManager类的典型用法代码示例。如果您正苦于以下问题:C# ApplicationModulesManager类的具体用法?C# ApplicationModulesManager怎么用?C# ApplicationModulesManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ApplicationModulesManager类属于命名空间,在下文中一共展示了ApplicationModulesManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
if (Application != null) {
Application.UserDifferencesLoaded += OnUserDifferencesLoaded;
Application.CreateCustomUserModelDifferenceStore += ApplicationOnCreateCustomUserModelDifferenceStore;
}
}
开发者ID:kamchung322,项目名称:eXpand,代码行数:7,代码来源:ModelDifferenceBaseModule.cs
示例2: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
var businessClassesList = GetAdditionalClasses(moduleManager);
WCTypesInfo.Instance.Register(businessClassesList);
if (Application == null || GetPath() == null)
return;
Application.SettingUp += ApplicationOnSettingUp;
if (FullConnectionString != null) {
var xpoMultiDataStoreProxy = new SqlMultiDataStoreProxy(FullConnectionString, GetReflectionDictionary());
using (var dataLayer = new SimpleDataLayer(xpoMultiDataStoreProxy)) {
using (var session = new Session(dataLayer)) {
using (var unitOfWork = new UnitOfWork(session.DataLayer)) {
RunUpdaters(session);
AddDynamicModules(moduleManager, unitOfWork);
}
}
}
} else {
var assemblies = AppDomain.CurrentDomain.GetAssemblies().Where(assembly => assembly.ManifestModule.ScopeName.EndsWith(CompileEngine.XpandExtension));
foreach (var assembly1 in assemblies) {
moduleManager.AddModule(assembly1.GetTypes().Where(type => typeof(ModuleBase).IsAssignableFrom(type)).Single());
}
}
Application.SetupComplete += ApplicationOnSetupComplete;
}
开发者ID:testexpand,项目名称:eXpand,代码行数:28,代码来源:WorldCreatorModuleBase.cs
示例3: AddLayers
void AddLayers(ModelApplicationBase modelApplication, ApplicationModulesManager applicationModulesManager, PathInfo pathInfo) {
var resourceModelCollector = new ResourceModelCollector();
var dictionary = resourceModelCollector.Collect(applicationModulesManager.Modules.Select(@base => @base.GetType().Assembly), null);
AddLayersCore(dictionary.Where(pair => !PredicateLastLayer(pair, pathInfo)), modelApplication);
ModelApplicationBase lastLayer = modelApplication.CreatorInstance.CreateModelApplication();
modelApplication.AddLayer(lastLayer);
}
开发者ID:krazana,项目名称:eXpand,代码行数:7,代码来源:ModelControllerBuilder.cs
示例4: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
if (RuntimeMode && !_comparerIsLock && typeof(IUser).IsAssignableFrom(Application.Security.UserType)) {
ObjectAccessComparerBase.SetCurrentComparer(new MemberLevelObjectAccessComparer());
_comparerIsLock = true;
}
}
开发者ID:aries544,项目名称:eXpand,代码行数:7,代码来源:MemberLevelSecurityModuleBase.cs
示例5: Setup
public override void Setup(ApplicationModulesManager moduleManager)
{
base.Setup(moduleManager);
var registrator = new ValidationRulesRegistrator(moduleManager);
registrator.RegisterRule(typeof(RuleRequiredForAtLeast1Property), typeof(IRuleRequiredForAtLeast1PropertyProperties));
registrator.RegisterRule(typeof(RuleFromIPropertyValueValidator), typeof(IRuleFromIPropertyValueValidatorProperties));
}
开发者ID:testexpand,项目名称:eXpand,代码行数:7,代码来源:XpandValidationModule.cs
示例6: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
if (RuntimeMode) {
AddToAdditionalExportedTypes("Xpand.Persistent.BaseImpl.ImportExport");
Core.TypesInfo.Instance.RegisterTypes(GetAdditionalClasses(moduleManager));
}
}
开发者ID:dimajanzen,项目名称:eXpand,代码行数:7,代码来源:IOModule.cs
示例7: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
if (RuntimeMode){
_authentication = new Authentication();
_authentication.Attach(this);
}
}
开发者ID:derjabkin,项目名称:eXpand,代码行数:7,代码来源:XpandSecurityWebModule.cs
示例8: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
if (Application != null) {
Application.LoggedOff += Application_LoggedOff;
Application.Disposed += Application_Disposed;
}
}
开发者ID:dimajanzen,项目名称:eXpand,代码行数:7,代码来源:ModelDifferencewindowsFormsModule.cs
示例9: GetModelApplication
ModelApplicationBase GetModelApplication(ApplicationModulesManager applicationModulesManager, PathInfo pathInfo, FileModelStore fileModelStore) {
var modelApplication = ModelApplicationHelper.CreateModel(XafTypesInfo.Instance, applicationModulesManager.DomainComponents, applicationModulesManager.Modules, applicationModulesManager.ControllersManager, Type.EmptyTypes, fileModelStore.GetAspects(), null, null);
AddLayers(modelApplication, applicationModulesManager, pathInfo);
ModelApplicationBase lastLayer = modelApplication.CreatorInstance.CreateModelApplication();
fileModelStore.Load(lastLayer);
ModelApplicationHelper.AddLayer(modelApplication, lastLayer);
return modelApplication;
}
开发者ID:aries544,项目名称:eXpand,代码行数:8,代码来源:ModelControllerBuilder.cs
示例10: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
// if (RuntimeMode)
if (Application != null) {
Application.SetupComplete += new EventHandler<EventArgs>(Application_SetupComplete);
Application.CreateCustomCollectionSource += new EventHandler<CreateCustomCollectionSourceEventArgs>(Application_CreateCustomCollectionSource);
}
}
开发者ID:pitchalt,项目名称:IntecoAG.XAFExt,代码行数:8,代码来源:XAFExtStateMachineModule.cs
示例11: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
var modelDifferenceBaseModule = (ModelDifferenceBaseModule)moduleManager.Modules.Where(
mbase => typeof(ModelDifferenceBaseModule).IsAssignableFrom(mbase.GetType())).SingleOrDefault();
if (modelDifferenceBaseModule != null)
modelDifferenceBaseModule.CreateCustomModelDifferenceStore += ModelDifferenceBaseModuleOnCreateCustomModelDifferenceStore;
}
开发者ID:kevin3274,项目名称:eXpand,代码行数:8,代码来源:Module.cs
示例12: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
if (RuntimeMode) {
AddToAdditionalExportedTypes(new[] { "Xpand.Persistent.BaseImpl.SequenceObject" });
SequenceObjectType = AdditionalExportedTypes.Single(type => type.FullName == "Xpand.Persistent.BaseImpl.SequenceObject");
InitializeSequenceGenerator();
}
}
开发者ID:kevin3274,项目名称:eXpand,代码行数:8,代码来源:XpandSystemModule.cs
示例13: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
if (Application != null) {
var winApplication = Application as WinApplication;
if (winApplication != null) winApplication.HandleException();
Application.LoggedOff += Application_LoggedOff;
Application.Disposed += Application_Disposed;
}
}
开发者ID:aries544,项目名称:eXpand,代码行数:9,代码来源:ModelDifferencewindowsFormsModule.cs
示例14: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
if (Application == null)
return;
if (RuntimeMode) {
AddToAdditionalExportedTypes("Xpand.Persistent.BaseImpl.JobScheduler");
Application.LoggedOn += ApplicationOnLoggedOn;
}
}
开发者ID:kevin3274,项目名称:eXpand,代码行数:10,代码来源:JobSchedulerModule.cs
示例15: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
if (Application != null) {
Application.LoggingOn += (sender, args) => {
if (ModelsLoaded.HasValue)
LoadModels(!ModelsLoaded.Value);
ModelsLoaded = true;
};
}
}
开发者ID:krazana,项目名称:eXpand,代码行数:10,代码来源:ModelDifferenceBaseModule.cs
示例16: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
var modelDifferenceBaseModule = (ModelDifferenceBaseModule)moduleManager.Modules.FirstOrDefault(mbase => mbase is ModelDifferenceBaseModule);
if (modelDifferenceBaseModule != null)
modelDifferenceBaseModule.CreateCustomModelDifferenceStore += ModelDifferenceBaseModuleOnCreateCustomModelDifferenceStore;
var exceptionHandlingWinModule =
(ExceptionHandlingWinModule)moduleManager.Modules.FindModule(typeof(ExceptionHandlingWinModule));
if (exceptionHandlingWinModule != null)
exceptionHandlingWinModule.CustomHandleException += ExceptionHandlingWinModuleOnCustomHandleException;
}
开发者ID:kamchung322,项目名称:eXpand,代码行数:10,代码来源:WinModule.cs
示例17: Setup
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(ThresholdSeverity)), IsExportedType));
AdditionalExportedTypes.AddRange(ModuleHelper.CollectExportedTypesFromAssembly(Assembly.GetAssembly(typeof(Customer)), IsExportedType));
var modelDifferenceBaseModule = (ModelDifferenceBaseModule)moduleManager.Modules.SingleOrDefault(mbase => mbase is ModelDifferenceBaseModule);
if (modelDifferenceBaseModule != null)
modelDifferenceBaseModule.CreateCustomModelDifferenceStore += ModelDifferenceBaseModuleOnCreateCustomModelDifferenceStore;
}
开发者ID:aries544,项目名称:eXpand,代码行数:11,代码来源:Module.cs
示例18: AddDynamicModules
public void AddDynamicModules(ApplicationModulesManager moduleManager, UnitOfWork unitOfWork){
Type assemblyInfoType = TypesInfo.Instance.PersistentAssemblyInfoType;
List<IPersistentAssemblyInfo> persistentAssemblyInfos =
new XPCollection(unitOfWork, assemblyInfoType).Cast<IPersistentAssemblyInfo>().Where(info => !info.DoNotCompile &&
moduleManager.Modules.Where(@base => @base.Name == "Dynamic" + info.Name + "Module").FirstOrDefault() ==null).ToList();
_definedModules = new CompileEngine().CompileModules(persistentAssemblyInfos,GetPath());
foreach (var definedModule in _definedModules){
moduleManager.AddModule(definedModule);
}
unitOfWork.CommitChanges();
}
开发者ID:akingunes,项目名称:eXpand,代码行数:11,代码来源:WorldCreatorModuleBase.cs
示例19: Setup
/// <summary>
/// Для модулей
/// </summary>
public override void Setup(ApplicationModulesManager moduleManager)
{
base.Setup(moduleManager);
// Убираем My Details(информация о текущем пользователе) из панели меню
DevExpress.ExpressApp.Security.MyDetailsController.CanGenerateMyDetailsNavigationItem = false;
fileAttachmentsModule = moduleManager.Modules.FindModule<FileAttachmentsWindowsFormsModule>();
if (fileAttachmentsModule != null)
fileAttachmentsModule.CustomOpenFileWithDefaultProgram += fileAttachmentsModule_CustomOpenWithDefaultProgram;
}
开发者ID:Rukhlov,项目名称:DataStudio,代码行数:14,代码来源:WinModule.cs
示例20: Setup
public override void Setup(ApplicationModulesManager moduleManager) {
base.Setup(moduleManager);
AddToAdditionalExportedTypes("Xpand.Persistent.BaseImpl.PivotChart");
try {
var assembly = Assembly.Load("DevExpress.Persistent.BaseImpl" + XafAssemblyInfo.VersionSuffix);
TypesInfo.LoadTypes(assembly);
} catch (FileNotFoundException) {
throw new TypeLoadException("Please make sure DevExpress.Persistent.BaseImpl is referenced from your application project and has its Copy Local==true");
}
var typeInfo = TypesInfo.FindTypeInfo("DevExpress.Persistent.BaseImpl.Analysis").Type;
AdditionalExportedTypes.Add(typeInfo);
}
开发者ID:martys,项目名称:eXpand,代码行数:13,代码来源:XpandPivotChartModule.cs
注:本文中的ApplicationModulesManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论