private void btnCheck_Click(object sender, EventArgs e)
    {
        // I suggest to add here textbox text validation
        // so user couldn't input anything apart number.
        int inputGuess = Convert.ToInt32(txtGuess.Text);

        myGuess.checkGuess(inputGuess);
    }
Exemplo n.º 2
0
 private void btnCheck_Click(object sender, EventArgs e)
 {
     myGuess = new GuessingGame(inputGuess);
     myGuess.checkGuess();
     inputGuess = Convert.ToInt32(txtGuess.Text)
 }