本文整理汇总了C#中ModuleCatalog.AddModule方法的典型用法代码示例。如果您正苦于以下问题:C# ModuleCatalog.AddModule方法的具体用法?C# ModuleCatalog.AddModule怎么用?C# ModuleCatalog.AddModule使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ModuleCatalog
的用法示例。
在下文中一共展示了ModuleCatalog.AddModule方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateModuleCatalog
protected override IModuleCatalog CreateModuleCatalog()
{
ModuleCatalog moduleCatalog = new ModuleCatalog();
moduleCatalog.AddModule(typeof(AdminModule));
moduleCatalog.AddModule(typeof(ArtistsModule));
return moduleCatalog;
}
示例2: CreateModuleCatalog
protected override Microsoft.Practices.Prism.Modularity.IModuleCatalog CreateModuleCatalog()
{
ModuleCatalog catalog = new ModuleCatalog();
catalog.AddModule(typeof(Module1.Module1));
catalog.AddModule(typeof(Module2.Module2));
return catalog;
}
示例3: GetModuleCatalog
protected override IModuleCatalog GetModuleCatalog()
{
var catalog = new ModuleCatalog();
catalog.AddModule(typeof (EmployeeModule));
catalog.AddModule(typeof (TimesheetModule));
return catalog;
}
示例4: CreateModuleCatalog
/// <summary>
/// Creates the <see cref="T:Microsoft.Practices.Prism.Modularity.IModuleCatalog" /> used by Prism.
/// </summary>
/// <returns></returns>
/// <remarks>The base implementation returns a new ModuleCatalog.</remarks>
protected override IModuleCatalog CreateModuleCatalog()
{
ModuleCatalog catalog = new ModuleCatalog();
catalog.AddModule(typeof(NeurochipModule));
catalog.AddModule(typeof(GhostModule));
return catalog;
}
示例5: CreateModuleCatalog
protected override Microsoft.Practices.Prism.Modularity.IModuleCatalog CreateModuleCatalog()
{
ModuleCatalog catalog = new ModuleCatalog();
catalog.AddModule(typeof(IssueLib.IssueModule));
catalog.AddModule(typeof(MapLib.MapModule));
catalog.AddModule(typeof(NavigationLib.NavigationModule));
return catalog;
}
示例6: CreateModuleCatalog
/// <summary>
/// Populates the Module Catalog.
/// </summary>
/// <returns>A new Module Catalog.</returns>
/// <remarks>
/// This method uses the Module Discovery method of populating the Module Catalog. It requires
/// a post-build event in each module to place the module assembly in the module catalog
/// directory.
/// </remarks>
protected override IModuleCatalog CreateModuleCatalog()
{
var moduleCatalog = new ModuleCatalog();
moduleCatalog.AddModule(typeof(SearchHelperModule));
moduleCatalog.AddModule(typeof(ReportsModule));
moduleCatalog.AddModule(typeof(AdminModule));
return moduleCatalog;
}
示例7: GetModuleCatalog
protected override IModuleCatalog GetModuleCatalog()
{
var catalog = new ModuleCatalog();
catalog.AddModule(typeof(ClientModule));
catalog.AddModule(typeof(AngelSystemModule));
catalog.AddModule(typeof(CourseModule.CourseModule));
return catalog;
}
示例8: GetRegisteredModules
public ModuleCatalog GetRegisteredModules()
{
// Register services before loading catalogs and regions
ServicesRegistrator();
var catalog = new ModuleCatalog();
catalog.AddModule(typeof(NavigationModule));
catalog.AddModule(typeof(HomeModule));
catalog.AddModule(typeof(ArtistModule));
catalog.AddModule(typeof(UserModule));
return catalog;
}
示例9: CreateModuleCatalog
/// <summary>
/// Populates the Module Catalog.
/// </summary>
/// <returns>A new Module Catalog.</returns>
protected override IModuleCatalog CreateModuleCatalog()
{
/// The most direct way to create a module catalog is to create it in code.
var moduleCatalog = new ModuleCatalog();
// Add the Dashboard Module to the catalog using code.
Type dashboardModule = typeof(DashboardModule);
moduleCatalog.AddModule(new ModuleInfo() { ModuleName = dashboardModule.Name, ModuleType = dashboardModule.AssemblyQualifiedName });
// Add the Customers Module to the catalog using code.
Type customerModule = typeof(CustomersModule);
moduleCatalog.AddModule(new ModuleInfo() { ModuleName = customerModule.Name, ModuleType = customerModule.AssemblyQualifiedName });
return moduleCatalog;
}
示例10: GetModuleCatalog
protected override IModuleCatalog GetModuleCatalog()
{
string query = App.Current.Host.Source.Query;
var level1 = new ModuleInfo(ModuleNames.level1, string.Format("{0}.Level1Module, {0}, Version=1.0.0.0", ModuleNames.level1)) { InitializationMode = InitializationMode.OnDemand, Ref = ModuleNames.level1 + ".xap" };
var level2 = new ModuleInfo(ModuleNames.level2, string.Format("{0}.Level2Module, {0}, Version=1.0.0.0",ModuleNames.level2)) { InitializationMode = InitializationMode.OnDemand, Ref = ModuleNames.level2 + ".xap" };
var level3 = new ModuleInfo(ModuleNames.level3, string.Format("{0}.Level3Module, {0}, Version=1.0.0.0", ModuleNames.level3)) { InitializationMode = InitializationMode.OnDemand, Ref = ModuleNames.level3 + ".xap" };
var level4 = new ModuleInfo(ModuleNames.level4, string.Format("{0}.Level4Module, {0}, Version=1.0.0.0", ModuleNames.level4)) { InitializationMode = InitializationMode.OnDemand, Ref = ModuleNames.level4 + ".xap" };
ModuleCatalog cat = new ModuleCatalog();
cat.AddModule(level1);
cat.AddModule(level2);
cat.AddModule(level3);
cat.AddModule(level4);
return cat;
}
示例11: GetModuleCatalog
protected override IModuleCatalog GetModuleCatalog()
{
var catalog = new ModuleCatalog();
catalog.AddModule((typeof(MainModule)));
return catalog;
}
示例12: GetModuleCatalog
protected override IModuleCatalog GetModuleCatalog()
{
var catalog = new ModuleCatalog();
catalog.AddModule(typeof(BugReportModule));
return catalog;
}
示例13: GetModuleCatalog
protected override IModuleCatalog GetModuleCatalog()
{
var moduleCatalog = new ModuleCatalog();
if ((_modules & Modules.Security) == Modules.Security)
moduleCatalog.AddModule(typeof(SecurityModule));
if ((_modules & Modules.Associations) == Modules.Associations)
moduleCatalog.AddModule(typeof(AssociationsModule));
if ((_modules & Modules.ClientLogin) == Modules.ClientLogin)
moduleCatalog.AddModule(typeof(ClientLoginModule));
if ((_modules & Modules.ClientPasswordRecovery) == Modules.ClientPasswordRecovery)
moduleCatalog.AddModule(typeof(ClientPasswordRecoveryModule));
if ((_modules & Modules.ClientRegistration) == Modules.ClientRegistration)
moduleCatalog.AddModule(typeof(ClientRegistrationModule));
return moduleCatalog;
}
示例14: CreateModuleCatalog
protected override IModuleCatalog CreateModuleCatalog()
{
base.ConfigureModuleCatalog();
ModuleCatalog modules = new ModuleCatalog();
modules.AddModule(typeof(PriceGridModule));
return modules;
}
示例15: CreateModuleCatalog
protected override IModuleCatalog CreateModuleCatalog()
{
var moduleCatalog = new ModuleCatalog();
// TODO: A more sofisticated method would
// be to get the modules from a Catalog.xaml file or a Web Service
moduleCatalog.AddModule(typeof (BasicAccountModule.BasicAccountModule));
return moduleCatalog;
}