private void pnlPicture_Click(object sender, EventArgs e) { Point LocationPicture = new Point(0, 0); OpenDoorImage image = 0; if ((Panel)sender == pnlPictureFlowers) { LocationPicture = new Point(550, 80); bClickPictureFlowers = true; image = OpenDoorImage.FLOWER; } else if ((Panel)sender == pnlPictureLandscape) { LocationPicture = new Point(260, 20); bClickPictureLandscape = true; image = OpenDoorImage.LANDSCAPE; } if (!bEnd && bClickPictureLandscape && bClickPictureFlowers) { ((Panel)sender).Location = LocationPicture; TestResult(image); Timer_OpenDoor(); bEnd = true; } }
private void TestResult(OpenDoorImage image) { if (image == OpenDoorImage.LANDSCAPE) { lblResult.Location = new Point(150, 40); } else { lblResult.Location = new Point(570, 370); } Result(); }
private void TestResult(OpenDoorImage image) { if (image == OpenDoorImage.LANDSCAPE) { lblResult.Location = new Point(150, 40); } else { lblResult.Location = new Point(570, 370); } Result(); }