当前位置: 首页>>代码示例>>C#>>正文


C# ModuleCatalog.AddModule方法代码示例

本文整理汇总了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;
 }
开发者ID:CarlosVV,项目名称:mediavf,代码行数:7,代码来源:Bootstrapper.cs

示例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;
		}
开发者ID:Motaz-Al-Zoubi,项目名称:xaml-sdk,代码行数:7,代码来源:Bootstrapper_SL.cs

示例3: GetModuleCatalog

 protected override IModuleCatalog GetModuleCatalog()
 {
     var catalog = new ModuleCatalog();
     catalog.AddModule(typeof (EmployeeModule));
     catalog.AddModule(typeof (TimesheetModule));
     return catalog;
 }
开发者ID:changhongfu,项目名称:TDDKata,代码行数:7,代码来源:Bootstrapper.cs

示例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;
        }
开发者ID:rinoandrejohnsen,项目名称:Tachikoma,代码行数:13,代码来源:Bootstrapper.cs

示例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;
 }
开发者ID:CrappySolutions,项目名称:UtbildningService,代码行数:8,代码来源:Bootstraper.cs

示例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;
        }
开发者ID:nagavitalp,项目名称:DialVijayawadaCode,代码行数:18,代码来源:Bootstrapper.cs

示例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;
        }
开发者ID:erwilleke,项目名称:ocu.angellight.code,代码行数:10,代码来源:Bootstrapper.cs

示例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;
        }
开发者ID:gricore,项目名称:GrigCorePlayer,代码行数:13,代码来源:ModuleRegistrator.cs

示例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;
    }
开发者ID:anica87,项目名称:WPFNhibernate,代码行数:19,代码来源:Bootstrapper.cs

示例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;
        }
开发者ID:andyb,项目名称:Silverlight-Modules,代码行数:15,代码来源:Bootstrapper.cs

示例11: GetModuleCatalog

        protected override IModuleCatalog GetModuleCatalog()
        {
            var catalog = new ModuleCatalog();
            catalog.AddModule((typeof(MainModule)));

            return catalog;
        }
开发者ID:jfromaniello,项目名称:prismcontrib,代码行数:7,代码来源:Bootstrapper.cs

示例12: GetModuleCatalog

        protected override IModuleCatalog GetModuleCatalog()
        {
            var catalog = new ModuleCatalog();
              catalog.AddModule(typeof(BugReportModule));

              return catalog;
        }
开发者ID:ZoolooDan,项目名称:bug-db-analyzer,代码行数:7,代码来源:Bootstrapper.cs

示例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;
        }
开发者ID:felixthehat,项目名称:Limo,代码行数:16,代码来源:AssociationsBootstrapper.cs

示例14: CreateModuleCatalog

        protected override IModuleCatalog CreateModuleCatalog()
        {
            base.ConfigureModuleCatalog();

            ModuleCatalog modules = new ModuleCatalog();
            modules.AddModule(typeof(PriceGridModule));
            return modules;  
        }
开发者ID:dave111,项目名称:MockBondDemo,代码行数:8,代码来源:BondAppBootStrapper.cs

示例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;
        }
开发者ID:eatskolnikov,项目名称:QBank,代码行数:9,代码来源:MyBootstrapper.cs


注:本文中的ModuleCatalog.AddModule方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。