Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Debug.WriteLine("Verify button clicked!");
            uxResetIdleTimer();
            String id     = this.idTextBox.Text;
            String answer = this.answerTextBox.Text;

            // Let's ask the oracle!
            if (id.Length > 0)
            {
                PuzzleResponse pr = oracle.checkSolution(id, answer);
                try
                {
                    oracleLogger.logSolveAttempt(id, answer, pr);
                    uxDisplayResponse(pr);
                }
                catch (ApplicationException ex)
                {
                    handleFatalError(ex);
                }
            }
        }