Exemple #1
0
 public static void OnProperties(this object obj, ModelProperties properties)
 {
     string[] propertyKeys = properties.GetPropertyKeys();
     for (int i = 0; i < propertyKeys.Length; i++)
     {
         obj.HandleProperty(propertyKeys[i], properties.GetProperty(propertyKeys[i]).Value);
     }
 }
Exemple #2
0
 public void OnProperties(ModelProperties properties)
 {
     this.properties = properties;
     if (trace)
     {
         log.Trace(GetType().Name + ".OnProperties() - NotImplemented");
     }
     string[] propertyKeys = properties.GetPropertyKeys();
     for (int i = 0; i < propertyKeys.Length; i++)
     {
         HandleProperty(propertyKeys[i], properties.GetProperty(propertyKeys[i]).Value);
     }
 }
Exemple #3
0
 private void FindVariables(ModelProperties properties)
 {
     string[] propertyKeys = properties.GetPropertyKeys();
     for (int i = 0; i < propertyKeys.Length; i++)
     {
         ModelProperty property = properties.GetProperty(propertyKeys[i]);
         AddVariable(property);
     }
     string[] keys = properties.GetModelKeys();
     for (int i = 0; i < keys.Length; i++)
     {
         ModelProperties nestedProperties = properties.GetModel(keys[i]);
         FindVariables(nestedProperties);
     }
 }