public void SynchronizeModel(object theObject, IModelNode modelNode) { var theValue = GetValue(theObject); if (theValue != null) { var valueType = ((ModelNode)modelNode).GetValueType(_modelNodePath); modelNode.SetValue(_modelNodePath, valueType, theValue); } }
public static void SetChangedValue(this IModelNode modelNode, string propertyName, string value) { modelNode.SetValue(propertyName, null, value); }