110,533
社区成员
发帖
与我相关
我的任务
分享
public PrivilegeInfo()
{
Form1.R900APP.evtInventoryEPC += new UHFAPI_NET.UHFAPI_NET.InventoryEPCDispacher(ShowInventoryEPC);
this.Disposed += delegate { Form1.R900APP.evtInventoryEPC -= ShowInventoryEPC; }; //<--
}
public void ShowInventoryEPC(string epc)
{
if (this.Disposing == false && this.IsDisposed == false) //<--
{
this.txtEarNO.Text = epc.Substring(4, 18);
}
}