Create method (function) for button action
This commit is contained in:
parent
e742d92a47
commit
e2b9e5fd0b
11
Form1.cs
11
Form1.cs
@ -14,6 +14,17 @@ namespace GuessTheCard
|
|||||||
previousDice = randomDice;
|
previousDice = randomDice;
|
||||||
labelCard.Text = "Result : " + randomDice;
|
labelCard.Text = "Result : " + randomDice;
|
||||||
labelScore.Text = "Score: " + score;
|
labelScore.Text = "Score: " + score;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonHigh_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
PlayRound(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void buttonLow_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
PlayRound(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user