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 39 of file AVRUI_Link_Toggle.cs.
41 bool val = input.isOn;
47 case MemberType.FIELD:
50 System.Convert.ChangeType(val, target.GetType().GetField(
field).FieldType)
54 case MemberType.PROPERTY:
56 target.GetType().GetProperty(
field).SetValue(
target,
57 System.Convert.ChangeType(val, target.GetType().GetProperty(
field).PropertyType)
63 catch(System.Exception) {
64 AVR_DevConsole.cwarn(
"Could not update the given target value to "+val,
this);