private void button1_Click(object sender, EventArgs e) { switch (zt) { case 1: timer1.Enabled = false; label1.Text = "20"; Level2_Start(); button1.Text = "下一题"; button1.ForeColor = Color.Black; timer2.Enabled = true; time = 20; zt++; break; case 2: timer2.Enabled = false; Level3_Start(); label1.Text = "10"; timer3.Enabled = true; time = 10; zt++; if (checkBox3.Checked || checkBox7.Checked) { if (checkBox3.Checked && checkBox7.Checked) { fen += 25; } else { fen += 20; } } break; case 3: timer3.Enabled = false; Level4_Start(); label1.Text = "10"; timer4.Enabled = true; time = 10; zt++; if (checkBox8.Checked && checkBox9.Checked) { fen += 20; } break; case 4: timer4.Enabled = false; Level5_Start(); label1.Text = "5"; timer5.Enabled = true; time = 5; zt++; if (textBox1.Text == "灰太宗") { fen += 10; } break; case 5: timer5.Enabled = false; if (progressBar1.Value != 13) { ; } else { fen += 20; } if (fen < 60) { MessageBox.Show("LOSE\nScore:" + fen.ToString(), "LOSE", MessageBoxButtons.OK, MessageBoxIcon.Error); Form7 frm7 = new Form7(); frm7.Show(); this.Close(); } else { MessageBox.Show("Win!\nScore:" + fen.ToString(), "Win", MessageBoxButtons.OK, MessageBoxIcon.Information); Form8 a = new Form8(); a.Show(); this.Close(); } break; } }