public void Configure(IActivityMonitor monitor, IStObjMutableItem o)
 {
     if (o.ClassType == typeof(A))
     {
         o.SetStObjPropertyValue(monitor, "StObjPower", "This is the A property.");
     }
     if (o.ClassType == typeof(ASpec))
     {
         o.SetStObjPropertyValue(monitor, "StObjPower", "ASpec level property.");
     }
 }
Exemple #2
0
 public void Configure(IActivityMonitor monitor, IStObjMutableItem o)
 {
     if (o.ClassType == typeof(SimpleContainer))
     {
         o.SetStObjPropertyValue(monitor, "SchmurtzProp", new SchmurtzProperty("Root"));
     }
     if (o.ClassType == typeof(SpecializedContainer))
     {
         o.SetStObjPropertyValue(monitor, "SchmurtzProp", new SchmurtzProperty("SpecializedContainer specializes Root"));
     }
     if (o.ClassType == typeof(BaseObject))
     {
         o.SetStObjPropertyValue(monitor, "SchmurtzProp", new SchmurtzProperty("BaseObject belongs to SpecializedContainer"));
     }
     if (o.ClassType == typeof(SpecializedObject))
     {
         o.SetStObjPropertyValue(monitor, "SchmurtzProp", new SchmurtzProperty("Finally: SpecializedObject inherits from BaseObject"));
     }
     if (o.ClassType == typeof(SpecializedObjectWithExplicitContainer))
     {
         o.SetStObjPropertyValue(monitor, "SchmurtzProp", new SchmurtzProperty("SpecializedObjectWithExplicitContainer inherits from BaseObject BUT is directly associated to SpecializedContainer"));
     }
 }
Exemple #3
0
 public void Configure(IActivityMonitor monitor, IStObjMutableItem o)
 {
     o.SetStObjPropertyValue(monitor, PropertyName, PropertyValue);
 }