title: c# comparing int values (in TextBox & TextBlock)
body: <p>I'm creating a ranking system (in c# Windows 8 App) that works as follow:</p>
  
  <p><strong>Example :Score of the match = 2 - 1</strong></p>
  
  <p>Player A: Forecast = 1 - 1 (1 point for entering 1 correct score input)</p>
  
  <p>Player B: Forecast = 0 - 2 (0 points)</p>
  
  <p>Player C: Forecast = 3 - 0 (3 points for saying that team won)</p>
  
  <p>Player D: Forecast = 2 - 0 (4 points: 3 points for saying the team won + 1 point correct score input)</p>
  
  <p>Player E: Forecast = 2 - 1 (5 points: 3 points for saying the team won + 2 points correct score input</p>
  
  <p>The score of the match is entered in 2 <strong>TextBoxs</strong> (MatchScore1 and MatchScore2)
  The player's forecast is in 2 <strong>TextBlocks</strong> (Forecast1 and Forecast2)
  When Clicked on a button it calculates the score and displays it in a TextBlock (AmountPoints)</p>
  
  <p>What I've done at the moment:</p>
  
  <pre><code>  private void btnBereken_Click(object sender, RoutedEventArgs e)
      {
          int score = 0;
          // Check: Correct input score
          if (Forecast1.Text == MatchScore1.Text)
          {
             score += 1;
             AmountPoints.Text = score.ToString();
          }
          // Check: Correct input score
          if (Forecast2.Text == MatchScore2.Text)
          {
              score += 1;
              AmountPoints.Text = score.ToString();
          }
          // nothing correct
          else
          {
              AmountPoints.Text = score.ToString();
          }
      }
  </code></pre>
  
  <p>Any idea's how to check if the forecast has entered the right team to win??
  And if the score of a match was a draw the player should also get 3 points, how can I do this?</p>