📌  相关文章
📜  windows 窗体添加 onclick - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:52.031000             🧑  作者: Mango

代码示例1
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);