private void OnSourceAdded(SourceAddedArgs args)
 {
     if (ServiceStartup())
     {
         ServiceManager.SourceManager.SourceAdded -= OnSourceAdded;
     }
 }
예제 #2
0
 /// <summary>
 /// Handles SourceAdded Event of SourceManager. When this source is added, its contents are setup.
 /// </summary>
 /// <param name="args">
 /// A <see cref="SourceAddedArgs"/> -- not used
 /// </param>
 private void OnSourceAdded(SourceAddedArgs args)
 {
     if (args.Source is LiveRadioSource)
     {
         SetupSourceContents();
     }
 }
예제 #3
0
 private void OnSourceAdded(SourceAddedArgs args)
 {
     if (args.Source.UniqueId == "PodcastSource-PodcastLibrary")
     {
         MaybeShowTeaserInPodcasts();
         ServiceManager.SourceManager.SourceAdded -= OnSourceAdded;
     }
 }
예제 #4
0
 private void OnSourceAdded(SourceAddedArgs args)
 {
     if (args.Source is MusicLibrarySource)
     {
         music_library = args.Source as MusicLibrarySource;
     }
     SetupSourceContents();
 }
 private void OnSourceAdded(SourceAddedArgs args)
 {
     if (ServiceManager.SourceManager.MusicLibrary != null && ServiceManager.SourceManager.VideoLibrary != null)
     {
         ServiceManager.SourceManager.SourceAdded -= OnSourceAdded;
         RefreshMetadataDelayed();
     }
 }
예제 #6
0
 private void OnSourceAdded(SourceAddedArgs args)
 {
     if (args.Source is IImportSource)
     {
         ThreadAssist.ProxyToMain(delegate {
             AddSource((IImportSource)args.Source);
         });
     }
 }
예제 #7
0
        private void OnSourceAdded(SourceAddedArgs args)
        {
            if (args.Source.GetType().FullName == "Banshee.NowPlaying.NowPlayingSource")
            {
                ((IDisposable)args.Source).Dispose();

                Gtk.Application.Invoke(delegate {
                    ServiceManager.SourceManager.RemoveSource(args.Source, true);
                });
            }
        }
예제 #8
0
        private void OnSourceAdded(object o, SourceAddedArgs args)
        {
            object[] new_args = new object [this.ctor_args.Length + 3];
            new_args [0] = args.Source;
            new_args [1] = this.queryable;
            new_args [2] = this.fingerprint;
            Array.Copy(this.ctor_args, 0, new_args, 3, this.ctor_args.Length);

            Container cont = (Container)Activator.CreateInstance(this.container_type, new_args);

            if (!cont.OpenClient())
            {
                return;
            }
            cont.IndexAll();
            cont.OpenView();
        }
예제 #9
0
 private void OnSourceAdded(SourceAddedArgs args)
 {
     Banshee.Base.ThreadAssist.ProxyToMain(delegate {
         AddSource(args.Source);
     });
 }
 private void OnSourceAdded(SourceAddedArgs args)
 {
     ServiceStartup ();
 }
예제 #11
0
		private void OnSourceAdded (object o, SourceAddedArgs args)
		{
			object[] new_args = new object [this.ctor_args.Length + 3];
			new_args [0] = args.Source;
			new_args [1] = this.queryable;
			new_args [2] = this.fingerprint;
			Array.Copy (this.ctor_args, 0, new_args, 3, this.ctor_args.Length);

			Container cont = (Container) Activator.CreateInstance (this.container_type, new_args);
			if (!cont.OpenClient ())
				return;
			cont.IndexAll ();
			cont.OpenView ();
		}
예제 #12
0
 private void OnSourceAdded(SourceAddedArgs args)
 {
     MonitorLibrary(args.Source as LibrarySource);
 }
예제 #13
0
 private void OnSourceAdded(SourceAddedArgs args)
 {
     MonitorLibrary (args.Source as LibrarySource);
 }
 /// <summary>
 /// Handles SourceAdded Event of SourceManager. When this source is added, its contents are setup.
 /// </summary>
 /// <param name="args">
 /// A <see cref="SourceAddedArgs"/> -- not used
 /// </param>
 private void OnSourceAdded(SourceAddedArgs args)
 {
     if (args.Source is LiveRadioSource)
         SetupSourceContents ();
 }
 private void OnSourceAdded(SourceAddedArgs args)
 {
     InstallDisplay(args.Source as NowPlayingSource);
 }
예제 #16
0
 private void OnSourceAdded(object o, SourceAddedArgs args)
 {
     Logger.Debug("Source Added");
     Evolution.Source source = args.Source;
     AddCategory(source);
 }
예제 #17
0
 private void OnSourceAdded(SourceAddedArgs args)
 {
     if (args.Source.UniqueId == "PodcastSource-PodcastLibrary") {
         MaybeShowTeaserInPodcasts ();
         ServiceManager.SourceManager.SourceAdded -= OnSourceAdded;
     }
 }
예제 #18
0
        private void OnSourceAdded(SourceAddedArgs args)
        {
            if (args.Source.GetType ().FullName == "Banshee.NowPlaying.NowPlayingSource") {
                ((IDisposable)args.Source).Dispose ();

                Gtk.Application.Invoke (delegate {
                    ServiceManager.SourceManager.RemoveSource (args.Source, true);
                });
            }
        }
 private void OnSourceAdded(SourceAddedArgs args)
 {
     if (args.Source is MusicLibrarySource) {
         music_library = args.Source as MusicLibrarySource;
     }
     SetupSourceContents ();
 }
 private void OnSourceAdded (SourceAddedArgs args)
 {
     ThreadAssist.ProxyToMain (delegate {
         AddSource (args.Source);
     });
 }
 private void OnSourceAdded (SourceAddedArgs args)
 {
     if (ServiceManager.SourceManager.MusicLibrary != null && ServiceManager.SourceManager.VideoLibrary != null) {
         ServiceManager.SourceManager.SourceAdded -= OnSourceAdded;
         RefreshMetadataDelayed ();
     }
 }
예제 #22
0
 private void OnSourceAdded(object o, SourceAddedArgs args)
 {
     Logger.Debug ("Source Added");
        Evolution.Source source = args.Source;
        AddCategory (source);
 }
 private void OnSourceAdded(SourceAddedArgs args)
 {
     if (ServiceStartup ()) {
         ServiceManager.SourceManager.SourceAdded -= OnSourceAdded;
     }
 }
 private void OnSourceAdded(SourceAddedArgs args)
 {
     InstallDisplay (args.Source as NowPlayingSource);
 }