public Model.Music Next() { if (Musics.Count() == 0) { return(null); } ++_CurrentIndex; _CurrentIndex %= Musics.Count(); return(Musics[_CurrentIndex]); }
public Model.Music Prev() { if (Musics.Count() == 0) { return(null); } if (_CurrentIndex > 0) { --_CurrentIndex; } else { _CurrentIndex = Musics.Count() - 1; } return(Musics[_CurrentIndex]); }