Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }