I have a small problem, I'm trying to create a math quiz in WPF Apllication, where numbers will randomly pop up, which will be calculated according to the chosen math operation. Everything works as planned, but now I've gotten to prepare Radiobutton and I have no idea how to come up with it. I would like to do this so that the Radiobuttons would take turns which answer would be correct (so that it was still not the first correctly). I know the answer will have to be written as Radiobutton's content. But I don't know how to set the condition for checking the correctness of the result.
if (firstPoss.Content == result.Text)
{
}
if (secondPoss.Content == result.Text)
{
}
if (thirdPoss.Content == result.Text)
{
}
this IF statement always passes
I will be happy for any advice or nudges in the right direction.
Aucun commentaire:
Enregistrer un commentaire