Esempio n. 1
0
        private void checkSolvabilityToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (S.isSolved())
            {
                return;
            }

            int error_count = S.ComputeErrors();

            if (error_count == 0)
            {
                S.RenderMessage("Everything's cool dude!", "Press any key to continue", false);

                pictureBox1.Invalidate();

                Application.DoEvents();

                //   PuzzleFine.Play();
            }
            else
            {
                Application.DoEvents();

                S.ShowErrors = true;

                pictureBox1.Invalidate();
            }
        }