private void TimerVisitable_Tick(object sender, EventArgs e) { TimerVisitable.Stop(); this.btnSpeaker2.Visible = false; int temp = BackEnd.getQuestion(); if (temp != -1) { this.Questions.Text = Data.newWord[temp % 5].question.ToString(); Data.currentQuestion = Data.newWord[temp % 5]; loadAnswer(); } else { this.btnSpeaker2.Visible = true; this.btnSpeaker2.Text = "Congratulation !\n You have learn 5 new words!"; timerOutOfTime.Stop(); this.lblTime.Hide(); this.LearnSuccess(); Data.XONG = true; this.btnDone.Visible = true; this.btnHome.Visible = true; this.btnSpeaker2.Visible = this.AnswerA.Visible = this.AnswerB.Visible = this.AnswerC.Visible = this.AnswerD.Visible = this.Questions.Visible = false; Questions.Enabled = false; } }
public FLearnNewWord(Panel frame) { InitializeComponent(); timerOutOfTime.Start(); btnSpeaker2.Visible = false; this.btnDone.Visible = false; pnlLoad.Visible = false; btnScore.Text = score.ToString(); root = frame; temp = BackEnd.getQuestion(); if (temp != -1) { this.Questions.Text = Data.newWord[temp % 5].question.ToString(); Data.currentQuestion = Data.newWord[temp % 5]; loadAnswer(); } }
public FPreviewNewWord() { InitializeComponent(); BackEnd.LoadData(); Data.crrWord.Clear(); BackEnd.addWord(); this.guna2Button1.Text = Data.crrWord[0].question; this.guna2Button6.Text = Data.crrWord[0].answer; this.guna2Button2.Text = Data.crrWord[1].question; this.guna2Button7.Text = Data.crrWord[1].answer; this.guna2Button3.Text = Data.crrWord[2].question; this.guna2Button8.Text = Data.crrWord[2].answer; this.guna2Button4.Text = Data.crrWord[3].question; this.guna2Button9.Text = Data.crrWord[3].answer; this.guna2Button5.Text = Data.crrWord[4].question; this.guna2Button10.Text = Data.crrWord[4].answer; pnlLoad.Visible = false; }