private void RegisterThemeSettingsWindows(IDependencyInjector container) { foreach (var theme in Themes.Where(x => x.SettingEditWindow != null)) { container.Register(theme.SettingEditWindow); } }
private void RegisterThemes(IDependencyInjector container) { foreach (var theme in Themes.Where(x => x.Theme != null)) { container.Register(theme.Theme, true); } }
private void RegisterPluginSettingsWindows(IDependencyInjector container) { foreach (var plugin in Plugins.Union(BuiltInPlugins).Where(x => x.SettingEditWindow != null)) { container.Register(plugin.SettingEditWindow); } }
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()); }