Exemplo n.º 1
0
        /// <summary>
        /// 处理系统信息数据解包
        /// </summary>
        /// <param name="obj"></param>
        private void HandleZJXX(SatellitePackage obj)
        {
            List <string> list = new List <string>();
            ZJXX          zjxx = new ZJXX();

            zjxx.Content = obj.Content;
            zjxx.Unpackage();
            list.Add(zjxx.ToString());
            HandleEvent(list, zjxx);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 更新自检信息回来的设备参数
 /// </summary>
 /// <param name="obj"></param>
 private void UpdateZJXX(SatellitePackage obj)
 {
     this.BeginInvoke((MyInvoker) delegate
     {
         tstbOrigin.Text   = obj.OriginAddress;
         tsslNumber.Text   = "Original No.: " + obj.OriginAddress;
         ZJXX z            = obj as ZJXX;
         tsslCapacity.Text = "Capacity: " + string.Format("[{0}:{1}][{2}:{3}][{4}:{5}][{6}:{7}][{8}:{9}][{10}:{11}]",
                                                          1, z.PW1, 2, z.PW2, 3, z.PW3, 4, z.PW4, 5, z.PW5, 6, z.PW6);
     });
 }