示例#1
0
文件: CANhelper.cs 项目: zhaolion/CAN
 void OnFrameInfoArgs(FrameInfo canframe)
 {
     try
     {
         EventHandler <CANFrameInfoArgs> temp = ReceviedData;
         CANFrameInfoArgs e = new CANFrameInfoArgs(canframe);
         if (temp != null)
         {
             temp(this, e);
         }
     }
     catch (Exception e)
     {
         LogHelper.WriteErrorLog("OnFrameInfoArgs" + e.Message);
     }
 }
示例#2
0
文件: CANhelper.cs 项目: zhaolion/CAN
 /// <summary>
 /// 接收到CAN数据帧,引发事件
 /// </summary>
 /// <param name="e"></param>
 void OnFrameInfoArgs(string frameID, string timestamp,
                      string frameFormat, string frameType,
                      string frameData)
 {
     try
     {
         EventHandler <CANFrameInfoArgs> temp = ReceviedData;
         CANFrameInfoArgs e = new CANFrameInfoArgs(frameID, timestamp, frameFormat, frameType, frameData);
         if (temp != null)
         {
             temp(this, e);
         }
     }
     catch (Exception e)
     {
         LogHelper.WriteErrorLog("OnFrameInfoArgs" + e.Message);
     }
 }
示例#3
0
文件: CANhelper.cs 项目: ZhaoLion/CAN
 void OnFrameInfoArgs(FrameInfo canframe)
 {
     try
     {
         EventHandler<CANFrameInfoArgs> temp = ReceviedData;
         CANFrameInfoArgs e = new CANFrameInfoArgs(canframe);
         if (temp != null)
         {
             temp(this, e);
         }
     }
     catch (Exception e)
     {
         LogHelper.WriteErrorLog("OnFrameInfoArgs" + e.Message);
     }
 }
示例#4
0
文件: CANhelper.cs 项目: ZhaoLion/CAN
 /// <summary>
 /// 接收到CAN数据帧,引发事件
 /// </summary>
 /// <param name="e"></param>
 void OnFrameInfoArgs(string frameID, string timestamp,
     string frameFormat, string frameType,
     string frameData)
 {
     try
     {
         EventHandler<CANFrameInfoArgs> temp = ReceviedData;
         CANFrameInfoArgs e = new CANFrameInfoArgs(frameID, timestamp, frameFormat, frameType, frameData);
         if (temp != null)
         {
             temp(this, e);
         }
     }
     catch (Exception e)
     {
         LogHelper.WriteErrorLog("OnFrameInfoArgs" + e.Message);
     }
 }