Пример #1
0
 /// <summary>
 /// 判断并返回给定元件是否“字元件”
 /// </summary>
 public static bool IsWordComponent(this MCComponentGroup c)
 {
     if (c.Components.Count == 0)
     {
         return(false);
     }
     else
     {
         var t = c.Components.First().Address.AddressType;
         return(t == FxAddressType.D || t == FxAddressType.C);
     }
 }
Пример #2
0
 public ResponseMessage()
 {
     ResultCode      = McCommandResponseConst.UNKNOWN;
     _componentGroup = new MCComponentGroup();
 }