Пример #1
0
        protected virtual void OnFrameReceived(FrameBlockReceivedEventArgs <TDataFrameType> e)
        {
            EventHandler <FrameBlockReceivedEventArgs <TDataFrameType> > handler = this.FrameBlockReceived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
        private void RaiseEventHandler(TDataFrameType[] frameBlock)
        {
            var args = new FrameBlockReceivedEventArgs <TDataFrameType>()
            {
                Data = frameBlock
            };

            this.OnFrameReceived(args);
        }