//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"); }
private void initcomms() { datacomms = new DataComms(); datacomms.dataReceiveEvent += new DataComms.DataReceivedDelegate(commsDataReceive); }