/// <summary> /// 处理IC检查数据包 /// </summary> /// <param name="obj"></param> private void HandleICJC(SatellitePackage obj) { List <string> list = new List <string>(); ICJC icjc = new ICJC(); icjc.Content = obj.Content; icjc.Unpackage(); list.Add(icjc.ToString()); HandleEvent(list, icjc); }
private void tsbtICTEST_Click(object sender, EventArgs e) { // 发送IC检测命令 var data = _handler.GetBlankDataPackage(); data.Time = DateTime.Now; data.Type = DataType.Send; ICJC icjc = new ICJC(); icjc.Package(); data.Data = icjc.Content; ShowHistory(CustomConvert.GetHex(data.Data)); _handler.AddMessage(data); }