public bool PlayNextTrack() { var list = _nowPlaying.NowPlayingList; if (list.Count == 0) { Stop(); return(true); } var next = list.IndexOf(PlayingTrack); if (!_playerState.GetShuffle() && !_playerState.GetAutoDjEnabled()) { next += 1; } else { next = rnd.Next(0, list.Count); } if (list.Count < next) { PlayIndex(next); } else { Stop(); } return(true); }