public void Configure(IActivityMonitor monitor, IStObjMutableItem o)
 {
     if (o.ClassType == typeof(BaseObjectAmbient))
     {
         o.SetAmbientPropertyValue(monitor, "OneStringValue", "Pouf", "ConfiguratorOneStringValueSetToPouf");
     }
 }
コード例 #2
0
 public void Configure(IActivityMonitor monitor, IStObjMutableItem o)
 {
     if (o.ClassType == typeof(SimpleObjectDirect))
     {
         o.SetDirectPropertyValue(monitor, "OneIntValue", 42, "ConfiguratorOneIntValueSetTo42");
     }
     if (o.ClassType == typeof(SimpleObjectAmbient))
     {
         o.SetAmbientPropertyValue(monitor, "OneIntValue", 42, "ConfiguratorOneIntValueSetTo42");
     }
 }
コード例 #3
0
 public void Configure(IActivityMonitor monitor, IStObjMutableItem o)
 {
     o.SetAmbientPropertyValue(monitor, PropertyName, PropertyValue, sourceDescription: "AmbientPropertySetAttribute");
 }