Connect (subscribe) the button with the method
This commit is contained in:
parent
e2b9e5fd0b
commit
0546bb2aa6
2
Form1.cs
2
Form1.cs
@ -15,6 +15,8 @@ namespace GuessTheCard
|
|||||||
labelCard.Text = "Result : " + randomDice;
|
labelCard.Text = "Result : " + randomDice;
|
||||||
labelScore.Text = "Score: " + score;
|
labelScore.Text = "Score: " + score;
|
||||||
|
|
||||||
|
buttonHigh.Click += buttonHigh_Click;
|
||||||
|
buttonLow.Click += buttonLow_Click;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buttonHigh_Click(object sender, EventArgs e)
|
private void buttonHigh_Click(object sender, EventArgs e)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user