public override void FindInCollection()
 {
     if (!this.CanFindInCollection)
     {
         return;
     }
     ApplicationLibraryPage.FindInCollection(this.CollectionId);
 }
Exemplo n.º 2
0
        public void FindInCollection()
        {
            Microsoft.Zune.Service.EContentType contentType = this.ContentType;
            if (contentType == Microsoft.Zune.Service.EContentType.PodcastEpisode)
            {
                PodcastLibraryPage.FindInCollection(-1, this.PodcastEpisodeId);
            }
            else if ((this.DownloadFlags & Microsoft.Zune.Service.EDownloadFlags.Channel) != Microsoft.Zune.Service.EDownloadFlags.None)
            {
                if (this.PlaylistId > 0)
                {
                    MusicLibraryPage.FindPlaylistInCollection(this.PlaylistId, this.CollectionId, true);
                }
                else
                {
                    ChannelLibraryPage.FindInCollection(this.SubscriptionMediaId, this.SubscriptionItemMediaId);
                }
            }
            else
            {
                if (this.CollectionId < 0)
                {
                    return;
                }
                switch (contentType)
                {
                case Microsoft.Zune.Service.EContentType.MusicTrack:
                    MusicLibraryPage.FindInCollection(-1, -1, this.CollectionId);
                    break;

                case Microsoft.Zune.Service.EContentType.Video:
                    VideoLibraryPage.FindInCollection(this.CollectionId);
                    break;

                case Microsoft.Zune.Service.EContentType.App:
                    ApplicationLibraryPage.FindInCollection(this.CollectionId);
                    break;
                }
            }
        }