c++ windows forms making button click event 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);