Method PushChildrenEnabled
PushChildrenEnabled(AbstractControl, bool, ref ConcurrentStack<PropInstanceAndValue>?)
Iterates children controls and changes 'Enabled' property value
for the each child. Old property values are pushed to the
oldValues stack.
public static void PushChildrenEnabled(AbstractControl control, bool newValue, ref ConcurrentStack<PropInstanceAndValue>? oldValues)Parameters
- controlAbstractControl
- The container control which childs are processed. 
- newValuebool
- New value for the property. 
- oldValuesConcurrentStack<PropInstanceAndValue>
- The stack to save old property values. 
Remarks
You can use PopProperties(ConcurrentStack<PropInstanceAndValue>?) for restoring property values after saved them using this method.