public AddControl ( object control, string key, object stateChangeEffect, bool affectedByStateChange = true, bool trueIsEnabledProperty = true ) : bool | ||
control | object | Control to be added (ToolStripItem or Form Control) |
key | string | Key to identify control. MUST be a unique part of the Control name. |
stateChangeEffect | object | Effect to be run on state change. Bool or Action. |
affectedByStateChange | bool | Optional. If true, this control is affected by state changes. |
trueIsEnabledProperty | bool | Optional. If true, property affected by state changes is the Enabled property, otherwise uses the visible property. |
Résultat | bool |