コード例 #1
0
        public void ProcTipMessageInfo(object sender, StanMsgHandlerArgs handler)
        {
            var bytes = handler.Message.Data;

            //var vehicle_obj_info = sc.BLL.VehicleBLL.Convert2Object_VehicleInfo(bytes);
            // var vh_obj = ZeroFormatterSerializer.Deserialize<AVEHICLE>(bytes);
            sc.ProtocolFormat.OHTMessage.TIP_MESSAGE_COLLECTION msg_collection = sc.BLL.LineBLL.Convert2Object_TipMsgInfoCollection(bytes);

            app.ObjCacheManager.putTipMessageInfos(msg_collection);
        }
コード例 #2
0
 public static void set(this List <sc.Data.VO.MPCTipMessage> tipMsgs, sc.ProtocolFormat.OHTMessage.TIP_MESSAGE_COLLECTION gpbTipMsgs)
 {
     tipMsgs.Clear();
     foreach (var info in gpbTipMsgs.TIPMESSAGEINFOS)
     {
         sc.Data.VO.MPCTipMessage msg = new sc.Data.VO.MPCTipMessage()
         {
             Msg      = info.Message,
             MsgLevel = info.MsgLevel,
             Time     = info.Time,
             XID      = info.XID
         };
         tipMsgs.Add(msg);
     }
 }
コード例 #3
0
 public void putTipMessageInfos(sc.ProtocolFormat.OHTMessage.TIP_MESSAGE_COLLECTION gpbMsgInfo)
 {
     MPCTipMessages.set(gpbMsgInfo);
     mPCTipMessagesChange?.Invoke(this, MPCTipMessages);
 }