Exemplo n.º 1
0
        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 { }
        }
Exemplo n.º 2
0
        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 { }
        }