/// <summary>
        /// Raises the <see cref="LineReceived" /> event.
        /// </summary>
        /// <param name="line">The received line of data.</param>
        protected void RaiseLineReceived(string line)
        {
            SerialLineReceivedEventHandler handler = this.lineReceived;

            if (handler != null)
            {
                handler(this, line);
            }
        }
示例#2
0
        protected void RaiseLineReceived(string line)
        {
            SerialLineReceivedEventHandler lineReceived = this.lineReceived;

            if (lineReceived != null)
            {
                lineReceived(this, line);
            }
        }