Method PushChildrenEnabledMultiple
PushChildrenEnabledMultiple(IEnumerable<AbstractControl>, bool, bool)
Iterates collection of the container controls and changes 'Enabled' property value of their childs. Old property values are returned.
public static ConcurrentStack<PropInstanceAndValue.SavedPropertiesItem>? PushChildrenEnabledMultiple(IEnumerable<AbstractControl> containers, bool newValue, bool doInsideUpdate = true)
Parameters
containers
IEnumerable<AbstractControl>The collection of the container controls which childs are processed.
newValue
boolNew value for the property.
doInsideUpdate
boolWhether to call DoInsideUpdate(Action) when properties are restored.
Returns
- ConcurrentStack<PropInstanceAndValue.SavedPropertiesItem>
Old values of the properties, it allows to restore them later.