Connect (subscribe) the button with the method

This commit is contained in:
Dita Aji Pratama 2026-04-11 12:05:53 +07:00
parent e2b9e5fd0b
commit 0546bb2aa6

View File

@ -15,6 +15,8 @@ namespace GuessTheCard
labelCard.Text = "Result : " + randomDice;
labelScore.Text = "Score: " + score;
buttonHigh.Click += buttonHigh_Click;
buttonLow.Click += buttonLow_Click;
}
private void buttonHigh_Click(object sender, EventArgs e)