C # typically uses events to map behavior to user actions. You can use one event handler to handle a click with several buttons or menu items.
BTW, C # is a language, not a graphical interface. There are several graphical interfaces that can be used with C # (Windows Forms, WPF, Silverlight, ASP.NET), and each of them is different. Therefore, your question is not related to C #, but rather to one of these frameworks.
source share