private static QuranAyah GetLastAyahFromAyahCount(QuranAyah firstAyah, int count) { var currentAyah = firstAyah; for (int i = 1; i < count; i++) { currentAyah = QuranUtils.GetNextAyah(currentAyah, false); } return(currentAyah); }
public void GotoNextAyah() { CurrentAyah = QuranUtils.GetNextAyah(CurrentAyah, true); if (repeatManager.ShouldRepeat()) { if (CurrentAyah > repeatManager.LastAyah) { CurrentAyah = repeatManager.FirstAyah; repeatManager.IncrementCounter(); } } }
public QuranAudioTrack GetNext() { return(new QuranAudioTrack(ReciterId, QuranUtils.GetNextAyah(GetQuranAyah(), true), ScreenInfo)); }