Beispiel #1
0
        public void SongListMoveTo(MediaPlaybackItem item)
        {
            if (SongPlayList.CurrentItem == item)
            {
                return;
            }
            var index = SongPlayList.Items.ToList().FindIndex(i => i == item);

            SongPlayList.MoveTo(index < 0 ? (uint)currentInsert : (uint)index);
            PlayAnyway();
        }
Beispiel #2
0
 public void SongListMoveTo(int index = -1)
 {
     if (index < 0)
     {
         if (SongPlayList.CurrentItem == SongPlayList.Items[currentInsert])
         {
             return;
         }
         else
         {
             SongPlayList.MoveTo((uint)currentInsert);
         }
     }
     else
     {
         SongPlayList.MoveTo((uint)index);
     }
     PlayAnyway();
 }