示例#1
0
 private void check_Click(object sender, EventArgs e)
 {
     Moves++;
     if (opponent.Check(currentLocation))
     {
         ResetGame(true);
     }
     else
     {
         RedrawForm();
     }
 }
示例#2
0
 private void check_Click(object sender, EventArgs e)
 {
     Moves++;
     if (opponent.Check(currentLocation))
     {
         ResetGame(true);
     }
     else
     {
         MessageBox.Show("No one in there!");
         RedrawForm();
     }
 }