private void OnFixMetadata(object o, EventArgs args) { var music = ServiceManager.SourceManager.MusicLibrary; // Only one fix source at a time if (music.Children.Any (c => c is FixSource)) { ServiceManager.SourceManager.SetActiveSource (music.Children.First (c => c is FixSource)); return; } var src = new FixSource (); music.AddChildSource (src); ServiceManager.SourceManager.SetActiveSource (src); }
private void OnFixMetadata(object o, EventArgs args) { var music = ServiceManager.SourceManager.MusicLibrary; // Only one fix source at a time if (music.Children.Any(c => c is FixSource)) { ServiceManager.SourceManager.SetActiveSource(music.Children.First(c => c is FixSource)); return; } var src = new FixSource(); music.AddChildSource(src); ServiceManager.SourceManager.SetActiveSource(src); }