/// <summary> /// 引发队列满事件 /// </summary> /// <param name="e"></param> private void OnCanReceviedEvent(CanFrameArgs e) { EventHandler <CanFrameArgs> temp = CanReceviedEvent; if (temp != null) { temp(this, e); } }
void _ReceviedList_CanReceviedEvent(object sender, CanFrameArgs e) { try { if (_ReceviedList.IsAvailable) { while (_ReceviedList.IsAvailable) { OnFrameInfoArgs(_ReceviedList.Remove()); } } } catch (Exception ex) { LogHelper.WriteErrorLog("_ReceviedList_CanReceviedEvent:" + ex.Message); } }
void _ReceviedList_CanReceviedEvent(object sender, CanFrameArgs e) { try { if (_ReceviedList.IsAvailable) { while (_ReceviedList.IsAvailable) OnFrameInfoArgs(_ReceviedList.Remove()); } } catch (Exception ex) { LogHelper.WriteErrorLog("_ReceviedList_CanReceviedEvent:" + ex.Message); } }
/// <summary> /// 引发队列满事件 /// </summary> /// <param name="e"></param> private void OnCanReceviedEvent(CanFrameArgs e) { EventHandler<CanFrameArgs> temp = CanReceviedEvent; if (temp != null) { temp(this, e); } }