日期:2014-05-17 浏览次数:20930 次
{
try
{
this.cI.Close();
this.cI.OnFrameReceived -= new delegateFrameReceived(this.ProcessFrame);
// 调用下面的函数时,怎么不要参数列表呀?
}
catch
{
}
this.connected = false;
return this.connected;
}
private void ProcessFrame(short ver, short msg_type, int msg_id, byte[] data)
{
dosomething()
}
// 例如下面的事件
public event EventHandler UpdateEvent;
// 在执行的时候需要传递参数
UpdateEvent(null, null);