protected virtual void OnDataAvailable(DataAvailableEventArgs e) { System.EventHandler<DataAvailableEventArgs> handler = DataAvailable; if (handler != null) { handler(this, e); } }
protected virtual void OnDataAvailable(DataAvailableEventArgs e) { System.EventHandler <DataAvailableEventArgs> handler = DataAvailable; if (handler != null) { handler(this, e); } }
void spIOPort_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) { m_buffer += spIOPort.ReadChar(); if (m_buffer.Contains ("\x0D\x0A")) { DataAvailableEventArgs m_e = new DataAvailableEventArgs(); m_e.data = m_buffer; //We have a newline! Time to go! OnDataAvailable(m_e); } }
void spIOPort_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e) { m_buffer += spIOPort.ReadChar(); if (m_buffer.Contains("\x0D\x0A")) { DataAvailableEventArgs m_e = new DataAvailableEventArgs(); m_e.data = m_buffer; //We have a newline! Time to go! OnDataAvailable(m_e); } }
void m_SerialClass_DataAvailable(object sender, DataAvailableEventArgs e) { //Parse down the string for the item marker //Inspect the frame type, pass it off to the correct signal accordingly }