Esempio n. 1
0
        public static bool WriteValue(Kc.Chunk outputChunk, Parts.IProperty property)
        {
            if (property.CurrentValue != null)
            {
                outputChunk.SetValue(property.Name, property.CurrentValue);
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
 public static bool ReadValue(Kc.Chunk inputChunk, Parts.IProperty property)
 {
     if (property.DefaultValue != null)
     {
         object valueObject = inputChunk.GetValueObject(property.Name, property.DefaultValue);
         property.CurrentValue = valueObject;
         return(true);
     }
     return(false);
 }