Esempio n. 1
0
 private void RegisterThemeSettingsWindows(IDependencyInjector container)
 {
     foreach (var theme in Themes.Where(x => x.SettingEditWindow != null))
     {
         container.Register(theme.SettingEditWindow);
     }
 }
Esempio n. 2
0
 private void RegisterThemes(IDependencyInjector container)
 {
     foreach (var theme in Themes.Where(x => x.Theme != null))
     {
         container.Register(theme.Theme, true);
     }
 }
Esempio n. 3
0
 private void RegisterPluginSettingsWindows(IDependencyInjector container)
 {
     foreach (var plugin in Plugins.Union(BuiltInPlugins).Where(x => x.SettingEditWindow != null))
     {
         container.Register(plugin.SettingEditWindow);
     }
 }
Esempio n. 4
0
        private IEnumerable <IPlugin> RegisterPlugins(IDependencyInjector container)
        {
            foreach (var plugin in Plugins.Union(BuiltInPlugins).Where(x => x.Plugin != null))
            {
                container.Register(plugin.Plugin, true);
            }

            return(ActivePlugins.Union(BuiltInPlugins).Where(x => x.Plugin != null).Select(plugin => (IPlugin)container.Resolve(plugin.Plugin)).ToList());
        }