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