private void GetccData() { while (true) { ReceivedobjEventArgs e = cc.GetData(); if (e != null) { cc_ReceivedEvent(e); } } }
void cc_ReceivedEvent(ReceivedobjEventArgs e) { // if (this.InvokeRequired) // { // InvokeReceivedEvent ivo = new InvokeReceivedEvent(this.cc_ReceivedEvent); // this.Invoke(ivo, e); // } // else // { handlereceivedata(((testpacket)e.Data)); /* }*/ }