Hi, I'm creating simple app for my son for math practice. It is also for me to practice C# as I started 2 weeks ago.
I got to a problem when Label is not updated with GOOD or WRONG before regenare new equation.
Could someone help please?
public MainWindow()
{
InitializeComponent();
CHECK.IsEnabled = false;
}
public int check;
public int number1;
public int number2;
public int correct;
public int wrong;
private void CHECK_Click(object sender, RoutedEventArgs e)
{
CHECK.IsEnabled = false;
StartButton.IsEnabled = true;
int suma = number1 + number2;
if (Convert.ToInt32(input.Text) == suma)
{
num1.Content = "GOOD!";
}
else
{