示例#1
0
        //Next button pressed
        private void button1_Click(object sender, EventArgs e)
        {
            if (correctAnswer == true)
            {
                //add 1 to score
                lblScore.Text = "Score: " + SessionPlayer.Score++;

                //go to next question
                FrmQ2 q2 = new FrmQ2();
                q2.Show();
                this.Hide();
            }
        }
示例#2
0
        private void timerQ1_Tick(object sender, EventArgs e)
        {
            if (timingBar.Value == 98)
            {
                timerQ1.Stop();

                FrmQ2 moveQ2 = new FrmQ2();
                moveQ2.Show();
                this.Hide();
            }
            else
            {
                timingBar.Value++;
            }
        }