110,566
社区成员
发帖
与我相关
我的任务
分享
public delegate void ResponseEventHandler(out int operType, string id, out string name);
private void ResponseTest(out int operType, string id, out string name)
{
operType = 0;
name = string.Empty;
if (this.InvokeRequired)
{
try
{
this.Invoke(new ResponseEventHandler(ResponseTest), new object[] { operType, id, name });
}
catch (Exception e)
{
Console.WriteLine(e.Source + " " + e.Message);
}
}
else
{
// to do...
}
}