예제 #1
0
        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();

            }
        }
예제 #2
0
 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();
 }
예제 #3
0
 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();
 }
예제 #4
0
 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();
     }
 }