Exemplo n.º 1
0
        protected override void OnListItemTap(DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
        {
            if (item is Artist)
            {
                if (isPlayButton)
                {
                    RemoteUtility.HandleLibraryPlayTask(((Artist)item).Play());
                }
                else
                {
                    NavigationManager.OpenArtistPage((Artist)item);
                }
                return;
            }

            if (item is Album)
            {
                if (isPlayButton)
                {
                    RemoteUtility.HandleLibraryPlayTask(((Album)item).Play());
                }
                else
                {
                    NavigationManager.OpenAlbumPage((Album)item);
                }
                return;
            }

            if (item is DACPItem)
            {
                RemoteUtility.HandleLibraryPlayTask(CurrentGenre.PlayItem((DACPItem)item));
                return;
            }
        }
 protected override void OnListItemTap(DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
 {
     if (item is iTunesUCourse)
     {
         NavigationManager.OpeniTunesUCourseEpisodesPage((iTunesUCourse)item);
         return;
     }
 }
Exemplo n.º 3
0
 protected override void OnListItemTap(DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
 {
     if (item is Song)
     {
         RemoteUtility.HandleLibraryPlayTask(CurrentGroup.PlaySong((Song)item));
         return;
     }
 }
Exemplo n.º 4
0
 protected override void OnListItemTap(DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
 {
     if (item is TVShow)
     {
         TVShow tvShow = (TVShow)item;
         NavigationManager.OpenTVShowEpisodesPage(tvShow);
         return;
     }
 }
Exemplo n.º 5
0
 protected override void OnListItemTap(DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
 {
     if (item is Podcast)
     {
         Podcast podcast = (Podcast)item;
         NavigationManager.OpenPodcastEpisodesPage(podcast);
         return;
     }
 }
Exemplo n.º 6
0
        protected override void OnListItemTap(DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
        {
            if (item is DACPGenre)
            {
                NavigationManager.OpenMovieGenrePage((DACPGenre)item);
                return;
            }

            base.OnListItemTap(item, list, isPlayButton);
        }
        protected override void OnListItemTap(DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
        {
            if (item is Playlist)
            {
                NavigationManager.OpenInternetRadioStationsPage((Playlist)item);
                return;
            }

            base.OnListItemTap(item, list, isPlayButton);
        }
Exemplo n.º 8
0
        protected override async void OnListItemTap(DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
        {
            if (item is DACPItem)
            {
                SetProgressIndicator(null, true);
                await RemoteUtility.HandleLibraryPlayTaskAsync(((DACPItem)item).Play());

                ClearProgressIndicator();
            }
        }
Exemplo n.º 9
0
        protected override void OnListItemTap(DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
        {
            if (item is Playlist)
            {
                NavigationManager.OpenPlaylistPage((Playlist)item);
                return;
            }

            if (item is DACPItem)
            {
                RemoteUtility.HandleLibraryPlayTask(CurrentContainer.PlayItem((DACPItem)item));
            }
        }
Exemplo n.º 10
0
 protected override void OnListItemTap(DACP.DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
 {
     if (item is DACPComposer)
     {
         if (isPlayButton)
         {
             RemoteUtility.HandleLibraryPlayTask(((DACPComposer)item).Play());
         }
         else
         {
             NavigationManager.OpenComposerPage((DACPComposer)item);
         }
         return;
     }
 }
Exemplo n.º 11
0
        protected override void OnListItemTap(DACP.DACPElement item, Common.Phone.Controls.LongListSelector list, bool isPlayButton)
        {
            var composer = CurrentComposer;

            if (composer == null)
            {
                return;
            }

            if (item is DACPItem)
            {
                RemoteUtility.HandleLibraryPlayTask(composer.PlayItem((DACPItem)item));
                return;
            }
        }