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(); }
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(); }