private void Interface_Activated(object sender, EventArgs e)
{
if (pictureBox1.Image == pictureBox10.Image && pictureBox2.Image == pictureBox12.Image && pictureBox3.Image == pictureBox13.Image && pictureBox4.Image == pictureBox14.Image && pictureBox5.Image == pictureBox15.Image && pictureBox6.Image == pictureBox16.Image && pictureBox7.Image == pictureBox17.Image && pictureBox8.Image == pictureBox18.Image && pictureBox9.Image == null)
{
MessageBox.Show("恭喜你已经完成拼图!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
}
这样做的话没有任何反应