title: C# how to handle multiple button click events?
body: <p>it's me again, tried not to bother you guys so soon, but me got a question...ssss... ... ...</p>
  
  <p>Okay, so, when I create application with multiple buttons, I usually handle their click event by assigning the same event handler for every button. I give them their unique names or tags and then with switch-case loop, using their names or tags I assign them their job, duty, mission, void, you know... So, this looks like something like this in my code:</p>
  
  <pre><code>    private void button_Click(object sender, EventArgs e)
      {
          Button B = (Button)sender;
          switch (B.Name)
          {
              case "START": optionStart(); break;
              case "LOAD":  optionLoad(); break;
              case "EXIT1": Application.Exit(); break;
              case "EXIT2": backToMainMenu(); break;
          }
      }
  </code></pre>
  
  <p>I am facing here couple of problems:
   1. Using my "technique" this whole thing is quite a mess when you reach about 20-30 buttons.
   2. Buttons with same name must be handled differently so I name them usually EXIT1, EXIT2, EXIT3 witch makes me lose it after few more exits...</p>
  
  <p>So, anyone has a alternative suggestion or solution or perhaps some guide? I'm a shameless man, I'll accept anything! <em>(just joking... I don't accept American Express)</em></p>