Example #1
0
        private void PbxImage_Click(PictureBox pbxScrImage)
        {
            bool wait;
            clsPuzzleCont = new PuzzleControl(lstPics, randNumArry, pbxArray);

            wait=clsPuzzleCont.IsAttack(pbxScrImage);
            clsFrm1.LblAttack.Text = Convert.ToString(PuzzleControl.AttackNum);

            if (wait)
            {
                Thread.Sleep(10);
            }

            if (clsPuzzleCont.IsTruePicture())
            {
                clsFrm1.tmrAutoComplete.Stop();
                clsFrm1.tmrAutoComplete.Enabled = false;
                clsPuzzleCont.addLostItem();
                clsFrm1.ClsStatusCont.GameOver(EnumStatus.Status.Win);

                Thread.Sleep(1000);
            }
        }
Example #2
0
        private void PbxImage_Click(object sender, EventArgs e)
        {
            clsPuzzleCont = new PuzzleControl(lstPics, randNumArry, pbxArray);
            PictureBox pbxScrImage = (PictureBox)sender;

            //Dogru Resim mi diye kontrol et
            this.IsTrueImage();

            //Hamle Yap
            IsAttack(pbxScrImage);

            this.IsTrueImage();
        }