Пример #1
0
        protected virtual void OnReaderDataChanged(ReaderDataEventArgs e)
        {
            ReaderDataHandler copyReaderDataChanged = ReaderDataChanged;

            if (copyReaderDataChanged != null)
            {
                copyReaderDataChanged(this, e);
            }
        }
Пример #2
0
        /// <summary>
        /// This function is called to notify any attached listeners about
        /// new reader data.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnReaderDataChanged(object sender, ReaderDataEventArgs e)
        {
            ReaderDataHandler localDataChanged = ReaderDataChanged;

            if (localDataChanged != null)
            {
                localDataChanged(sender, e);
            }
        }