Example #1
0
 protected virtual void OnDataAvailable(DataAvailableEventArgs e)
 {
     System.EventHandler<DataAvailableEventArgs> handler = DataAvailable;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Example #2
0
 protected virtual void OnDataAvailable(DataAvailableEventArgs e)
 {
     System.EventHandler <DataAvailableEventArgs> handler = DataAvailable;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Example #3
0
 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);
     }
 }
Example #4
0
 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);
     }
 }
Example #5
0
        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
        }
Example #6
0
        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
        }