/// <summary> /// Setup the source contents of the LiveRadioSource, i.e. create a childsource for each enabled plugin found /// and initialize the overview widget. /// </summary> /// <returns> /// A <see cref="System.Boolean"/> -- always returns true /// </returns> private bool SetupSourceContents() { foreach (ILiveRadioPlugin plugin in plugins) { if (EnabledPlugins.Contains(plugin.Name)) { AddPlugin(plugin); } } source_contents = new LiveRadioSourceContents(plugins); Properties.Set <ISourceContents> ("Nereid.SourceContents", source_contents); ServiceManager.SourceManager.SourceAdded -= OnSourceAdded; return(true); }
/// <summary> /// Setup the source contents of the LiveRadioSource, i.e. create a childsource for each enabled plugin found /// and initialize the overview widget. /// </summary> /// <returns> /// A <see cref="System.Boolean"/> -- always returns true /// </returns> private bool SetupSourceContents() { foreach (ILiveRadioPlugin plugin in plugins) { if (EnabledPlugins.Contains (plugin.Name)) { AddPlugin (plugin); } } source_contents = new LiveRadioSourceContents (plugins); Properties.Set<ISourceContents> ("Nereid.SourceContents", source_contents); ServiceManager.SourceManager.SourceAdded -= OnSourceAdded; return true; }