public void Next() { if (CurrentTrack == null) { return; } var track = CurrentTab?.GetNextTrack(CurrentTrack); CurrentTab?.Play(track); }
void OnTrackEnd(object sender, EventArgs args) { Track track = CurrentTab.GetNextTrack(player.CurrentTrack); player.Play(track, CurrentTab); }