Esempio n. 1
0
 private void SaveTrainingInfo(TrainProc tpInfo)
 {
     if (_trnLicense != null && _trnLicense.TrainDetail != null)
     {
         _trnLicense.TrainDetail.TrainProcList.Add(tpInfo);
     }
 }
Esempio n. 2
0
        public void AddProcInfo(string code, string mode, string timeStamp, string type)
        {
            TrainProc tp = new TrainProc
            {
                Code      = code,
                Mode      = mode,
                Timestamp = timeStamp,
                Type      = type
            };

            _sw.WriteLine(DateTime.Now.ToLocalTime() + ":" + "加入队列数据:" + tp.Code + "," + tp.Type);
            _trainProcQueue.Enqueue(tp);
        }