ButtonTracker - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki

Namespace: UtilityClassLibrary
Implements: IButtonTracker

Description: Track button control's status (enabled/disabled);

Constructors Usage
ButtonTracker() Initializes an instance of ButtonTracker class
Methods Usage
Disable(Button) disable specified button
Enable(Button) enable specified button
IsDisabled(Button) check if a button is disabled

Remarks:

The button's status stored in the tracker is NOT the same as "Enabled" property of button control; the purpose of the tracker is to allow the client to customize the behavior of a "disabled" button without actually setting the "Enabled" property to false (for instance, one can not modify a button control's appearance once the "Enabled" property is set to false).