This method is executed when the runtime user changes the value of the UI element. This method should change the field on the actual target respectively.
Implements AVR.UI.Link.AVRUI_Link.
Definition at line 41 of file AVRUI_Link_TMPInputfield.cs.
44 if (
input.isFocused)
return;
47 string text = input.text;
53 case MemberType.FIELD:
56 System.Convert.ChangeType(text, target.GetType().GetField(
field).FieldType)
60 case MemberType.PROPERTY:
62 target.GetType().GetProperty(
field).SetValue(
target,
63 System.Convert.ChangeType(text, target.GetType().GetProperty(
field).PropertyType)
69 catch(System.Exception) {
70 AVR_DevConsole.cwarn(
"Could not update the given target value to "+text,
this);