Click or drag to resize

AbstractHermeticGUIControl Constructor

Creates a control, bound to a member.

Namespace:  KSPDev.GUIUtils
Assembly:  KSPDev_Utils.1.0 (in KSPDev_Utils.1.0.dll) Version: 1.0 for KSP v1.6+
Syntax
C#
protected AbstractHermeticGUIControl(
	Object instance,
	FieldInfo fieldInfo,
	PropertyInfo propertyInfo,
	Action onBeforeUpdate,
	Action onAfterUpdate
)
Request Example View Source

Parameters

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