AbstractHermeticGUIControl Constructor |
Creates a control, bound to a member.
Namespace:
KSPDev.GUIUtils
Assembly:
KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntaxprotected AbstractHermeticGUIControl(
Object instance,
FieldInfo fieldInfo,
PropertyInfo propertyInfo,
Action onBeforeUpdate,
Action onAfterUpdate
)
Request Example
View SourceParameters
- instance
- Type: SystemObject
The class instance that owns the member to manage. - fieldInfo
- Type: System.ReflectionFieldInfo
The field to manage. It must be null if propertyInfo is set.
- propertyInfo
- Type: System.ReflectionPropertyInfo
The property to manage. It's ignored if fieldInfo is not null.
- onBeforeUpdate
- Type: SystemAction
The callback to call before changing the value. InvalidOperationException can be
throws form this action to prevent the change.
- onAfterUpdate
- Type: SystemAction
The callback to call when the value is changed.
See Also