private async void NextKata() { try { if (mCollection.Count == 0) { return; } await SwipeAnimateEffect(false); CurrentPlayIndex++; if (CurrentPlayIndex > (mCollection.Count - 1)) { CurrentPlayIndex = 0; } item = mCollection[CurrentPlayIndex]; KataKor.Text = item.KataKor; Lembutlidah.Text = item.Lembutlidah; BuatKan.Text = item.BuatKan; if (!bIsAutoPlay) { CounterTimerLabel(); } PlaySuaraSound(KataKor.Text); } catch { } }
private async void CurrentKata() { try { if (CurrentPlayIndex < 0 || mCollection.Count == 0) { return; } item = mCollection[CurrentPlayIndex]; KataKor.Text = item.KataKor; Lembutlidah.Text = item.Lembutlidah; BuatKan.Text = item.BuatKan; CounterTimerLabel(); PlaySuaraSound(KataKor.Text); } catch { } }