Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        private void TestResult(OpenDoorImage image)
        {
            if (image == OpenDoorImage.LANDSCAPE)
            {
                lblResult.Location = new Point(150, 40);
            }
            else
            {
                lblResult.Location = new Point(570, 370);
            }

            Result();
        }
Exemplo n.º 3
0
        private void TestResult(OpenDoorImage image)
        {
            if (image == OpenDoorImage.LANDSCAPE)
            {
                lblResult.Location = new Point(150, 40);
            }
            else
            {
                lblResult.Location = new Point(570, 370);
            }

            Result();
        }