windows forms add onclick code example
Example: windows forms add onclick
button.Click += (sender, e)=> {
// In here, you can access prodData1 and prodData2
};
// Or
button.Click += ClickMethod;
// Or
string extraParamenter = ""; // This extra paremeter can be any type
button.Click += ClickMethod(sender, e, extraParamenter);