Beispiel #1
0
        /// <summary>
        /// Advances to the next playlist item.
        /// </summary>
        public void GoToNextPlaylistItem()
        {
            var playlistItem = Playlist[CurrentPlaylistItemIndex + 1];
            var args         = new SkipToPlaylistItemEventArgs(playlistItem);

            if (SkippingNext != null)
            {
                SkippingNext(this, args);
            }
            if (!args.Cancel)
            {
                CurrentPlaylistItem = playlistItem;
            }
        }
Beispiel #2
0
        /// <summary>
        /// Advances to the previous playlist item.
        /// </summary>
        public void GoToPreviousPlaylistItem()
        {
            var playlistItem = Playlist[CurrentPlaylistItemIndex - 1];
            var args         = new SkipToPlaylistItemEventArgs(playlistItem);

            if (SkippingPrevious != null)
            {
                SkippingPrevious(this, args);
            }
            if (!args.Cancel)
            {
                CurrentPlaylistItem = playlistItem;
            }
        }
 void MainPage_SkippingNext(object sender, SkipToPlaylistItemEventArgs e)
 {
   ucPlaybackStatus.Reset();
 }
 /// <summary>
 /// Advances to the next playlist item.
 /// </summary>
 public void GoToNextPlaylistItem()
 {
     var playlistItem = Playlist[CurrentPlaylistItemIndex + 1];
     var args = new SkipToPlaylistItemEventArgs(playlistItem);
     if (SkippingNext != null) SkippingNext(this, args);
     if (!args.Cancel)
     {
         CurrentPlaylistItem = playlistItem;
     }
 }
 /// <summary>
 /// Advances to the previous playlist item.
 /// </summary>
 public void GoToPreviousPlaylistItem()
 {
     var playlistItem = Playlist[CurrentPlaylistItemIndex - 1];
     var args = new SkipToPlaylistItemEventArgs(playlistItem);
     if (SkippingPrevious != null) SkippingPrevious(this, args);
     if (!args.Cancel)
     {
         CurrentPlaylistItem = playlistItem;
     }
 }