From e2b9e5fd0b1a328ead4ed73d1c0282f7d8fd1cd2 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Sat, 11 Apr 2026 12:05:12 +0700 Subject: [PATCH] Create method (function) for button action --- Form1.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Form1.cs b/Form1.cs index 5854146..c4966a9 100644 --- a/Form1.cs +++ b/Form1.cs @@ -14,6 +14,17 @@ namespace GuessTheCard previousDice = randomDice; labelCard.Text = "Result : " + randomDice; labelScore.Text = "Score: " + score; + + } + + private void buttonHigh_Click(object sender, EventArgs e) + { + PlayRound(1); + } + + private void buttonLow_Click(object sender, EventArgs e) + { + PlayRound(0); } } }