Ejemplo n.º 1
0
        void WrongAnswer()
        {
            this.btnSpeaker2.Text = "Incorrect!";
            int n = getIndexofQuestion();

            if (n < 0)
            {
                return;
            }
            score -= 8;
            if (score <= -50)
            {
                btnScore.Text            = score.ToString();
                this.btnSpeaker2.Visible = true;
                this.btnSpeaker2.Text    = "Your must be learn 5 new words again!";
                btnLearnAgain.Visible    = true;
                Data.XONG = true;
                this.btnSpeaker2.Visible = this.AnswerA.Visible = this.AnswerB.Visible = this.AnswerC.Visible = this.AnswerD.Visible = this.Questions.Visible = false;
                Questions.Enabled        = false;
            }
            else
            {
                btnScore.Text = score.ToString();
                Data.ArrNumber.Add(n);
                Data.ArrNumber.Add(n);
                btnSpeaker2.Visible = true;
                TimerWrong.Start();
            }
        }
Ejemplo n.º 2
0
        private void TimerWrong_Tick(object sender, EventArgs e)
        {
            TimerWrong.Stop();
            this.btnSpeaker2.Visible = false;

            lblWordRL.Text  = Data.currentQuestion.question + " : " + Data.currentQuestion.answer;
            pnlLoad.Visible = true;
        }