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();
            }
        }