WinForms Button Array
问题 I'm learning C# and I've got the exercise to create a calculator with Windows Forms. Right now I just added 9 buttons for the numbers and 4 buttons for the casual operations (+,-,*,/) and a label to write in the numbers as strings. Currently I'm doing this: private void button1_Click(object sender, EventArgs e) { WriteInLabel(1); } private void button2_Click(object sender, EventArgs e) { WriteInLabel(2); } //etc. //function to write the Text in label1 private void WriteInLabel(int i) { label1