public WbfqexDataFrame DequeueItem()
    {
        if (_queFrames.IsEmpty)
        {
            return(null);
        }

        WbfqexDataFrame re = null;

        _queFrames.TryDequeue(out re);

        if (re != null && re.频率序号 == 0)
        {
            _cc--;

            while (_cc > 0)
            {
                _queFrames.TryDequeue(out re);
                if (re != null && re.频率序号 == 0)
                {
                    _cc--;
                }
            }
        }

        return(re);
    }
    public void EnqueueItem(WbfqexDataFrame pItem)
    {
        if (pItem.频率序号 == 0)
        {
            _cc++;
        }

        _queFrames.Enqueue(pItem);
    }
 public void OnSpectrumDataCompleted(WbfqexDataFrame pData)
 {
     if (pData != null)
     {
         Action <WbfqexDataFrame> handler = SpectrumDataCompleted;
         if (handler != null)
         {
             handler(pData);
         }
     }
 }
        public void OnNoiseCompleted(WbfqexDataFrame pDataFrame)
        {
            if (pDataFrame == null)
            {
                return;
            }

            Action <WbfqexDataFrame> handler = NoiseCompleted;

            if (handler != null)
            {
                handler(pDataFrame);
            }
        }