Ejemplo n.º 1
0
 protected void LogSingleValueVerification(List <byte[]> values, string propertyName, SGF_Root_Setting setting)
 {
     if (values.Count > 1)
     {
         setting.PushError(propertyName, "The property has multi values");
     }
 }
Ejemplo n.º 2
0
 public override void Decode(List <byte[]> values, string propertyName, SGF_Root_Setting setting)
 {
     LogSingleValueVerification(values, propertyName, setting);
     if (values.Count == 1)
     {
         if (values[0].Length != 2)
         {
             setting.PushError(propertyName, "The point type has the incorrect format");
             return;
         }
         x_ = Util.MoveToInt(values[0][0]);
         y_ = Util.MoveToInt(values[0][1]);
         if (x_ != -1 || y_ != -1)
         {
             isBlank_ = false;
         }
         else
         {
             setting.PushError(propertyName, "The point type has the incorrect format");
         }
     }
 }