End Google Ads 201810 - BS.net 01 -->
Hallo everyone,
I want to make a Simple calculator, as an exercise to get familiar with GUI and C#
I can easily drag 10 buttons, name them btn1, btn2... btn0 and then create the appropriate functions like
private void btn1_Click(object sender, EventArgs e)and let a member variable have the appropriate value.
But...
isn't there a better way to deal with that? Something like having an array[9], where every field is a button, or sort of it?
I find it ugly and really annoying having 10 functions who do quite the same thing.
Thanks...
مواقع النشر (المفضلة)