Пример #1
0
        /// <summary>
        /// 处理系统自检数据解包
        /// </summary>
        /// <param name="obj"></param>
        private void HandleXTZJ(SatellitePackage obj)
        {
            List <string> list = new List <string>();
            XTZJ          xtzj = new XTZJ();

            xtzj.Content = obj.Content;
            xtzj.Unpackage();
            list.Add(xtzj.ToString());
            HandleEvent(list, xtzj);
        }
Пример #2
0
        private void tsbtSystemTest_Click(object sender, EventArgs e)
        {
            // 发送系统检测命令
            XTZJ xtzj = new XTZJ();

            xtzj.OriginAddress = tstbOrigin.Text;
            xtzj.Frequency     = 0;
            xtzj.Package();
            var data = _handler.GetBlankDataPackage();

            data.Time = DateTime.Now;
            data.Type = DataType.Send;
            data.Data = xtzj.Content;
            ShowHistory(CustomConvert.GetHex(data.Data));
            _handler.AddMessage(data);
        }