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 55 of file AVRUI_Link_TMPDropdown.cs.
58 string text = input.options[input.value].text;
64 case MemberType.FIELD:
66 int numval = (int)System.Enum.Parse(
target.GetType().GetField(
field).FieldType, text);
67 target.GetType().GetField(
field).SetValue(
target, numval);
70 case MemberType.PROPERTY:
72 int numval = (int)System.Enum.Parse(
target.GetType().GetProperty(
field).PropertyType, text);
73 target.GetType().GetProperty(
field).SetValue(
target, numval);
78 catch(System.Exception) {
79 AVR_DevConsole.cwarn(
"Could not update the given target value to "+text,
this);