Пример #1
0
        /// <summary>
        /// 引发队列满事件
        /// </summary>
        /// <param name="e"></param>
        private void OnCanReceviedEvent(CanFrameArgs e)
        {
            EventHandler <CanFrameArgs> temp = CanReceviedEvent;

            if (temp != null)
            {
                temp(this, e);
            }
        }
Пример #2
0
 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);
     }
 }
Пример #3
0
 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);
     }
 }
Пример #4
0
 /// <summary>
 /// 引发队列满事件
 /// </summary>
 /// <param name="e"></param>
 private void OnCanReceviedEvent(CanFrameArgs e)
 {
     EventHandler<CanFrameArgs> temp = CanReceviedEvent;
     if (temp != null)
     {
         temp(this, e);
     }
 }