private void buttonstart_Click(object sender, EventArgs e) { if (buttonstart.Text == "��ʼ(&E)") { gaizi.Hide(); controller = new gameController(gamewiew); buttonback.Enabled = true; gametimer.Enabled = true; gamewiew.Invalidate(); proimg.Invalidate(); buttonstart.Text = "ֹͣ(&P)"; gamewiew.Focus(); } else { buttonback.Enabled = false; gametimer.Enabled = false; gaizi.Show(); buttonstart.Text = "��ʼ(&E)"; welcomelabel.Text = "��ӭ������Ϸ"; proimg.Invalidate(); gaizi.Focus(); } }
private void buttonback_Click(object sender, EventArgs e) { gaizi.Hide(); controller = new gameController(gamewiew); buttonstart.Enabled = true; gametimer.Enabled = true; gamewiew.Invalidate(); proimg.Invalidate(); buttonstart.Text = "Í£Ö¹(&P)"; gamewiew.Focus(); }
private void buttonback_Click(object sender, EventArgs e) { gaizi.Hide(); controller = new gameController(gamewiew); buttonstart.Enabled = true; gametimer.Enabled = true; gamewiew.Invalidate(); proimg.Invalidate(); buttonstart.Text = "ֹͣ(&P)"; gamewiew.Focus(); }
private void buttonstart_Click(object sender, EventArgs e) { if (buttonstart.Text == "¿ªÊ¼(&E)") { gaizi.Hide(); controller = new gameController(gamewiew); buttonback.Enabled = true; gametimer.Enabled = true; gamewiew.Invalidate(); proimg.Invalidate(); buttonstart.Text = "Í£Ö¹(&P)"; gamewiew.Focus(); } else { buttonback.Enabled = false; gametimer.Enabled = false; gaizi.Show(); buttonstart.Text = "¿ªÊ¼(&E)"; welcomelabel.Text = "»¶Ó³¢ÊÔÓÎÏ·"; proimg.Invalidate(); gaizi.Focus(); } }