예제 #1
0
 //This method must be called right at the start for data communications
 private void InitComms()
 {
     dataComms = new DataComms();
     dataComms.dataReceiveEvent   += new DataComms.DataReceivedDelegate(commsDataReceive);
     dataComms.dataSendErrorEvent += new DataComms.DataSendErrorDelegate(commsSendError);
     Console.WriteLine("Connected");
 }
예제 #2
0
 private void initcomms()
 {
     datacomms = new DataComms();
     datacomms.dataReceiveEvent += new DataComms.DataReceivedDelegate(commsDataReceive);
 }