Keypad - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki

Namespace: UserControlClassLibrary
Extends: UserControl
Implements: IKeypad

Description: Basic calculator/converter keypad.

Constructors Usage
Keypad() Initializes an instance of Keypad class
Keypad(IButtonTracker, IHelper, bool) Initializes an instance of Keypad class with injected services
Events Usage
OnButtonMouseClick(object, EventArgs) when key pad button is clicked
OnButtonMouseEnter(object, EventArgs) when mouse pointer enters key pad button
OnButtonMouseLeave(object, EventArgs) when mouse pointer leaves key pad button
OnKeypadEnable(object, EventArgs) when key pad is enabled
OnMemoryAdd(object, EventArgs) when specified value in calculator memory is increased
OnMemoryClear(object, EventArgs) when calculator memory is cleared
OnMemoryRecall(object, EventArgs) when most recent value stored in calculator memory is set to input buffer
OnMemoryStore(object, EventArgs) when value is stored in calculator memory
OnMemorySubtract(object, EventArgs) when specified value in calculator memory is decreased
OnMemoryToggle(object, EventArgs) when memory panel is toggled (extended/shrunken)
Properties Usage
ExtraKeysSuspended<bool> indicate if extra keys are disabled
HasMemory<bool> indicate if calculator memory is empty
IsDisabled<bool> indicate if key pad is disabled
MainAreaHeight<int> get main key pad area height
Methods Usage
DisableAllKeys() disable all keys on key pad
EnableAllKeys() enable all keys on key pad
EnableValidKeys() enable all keys with the exception of memory keys when calculator memory is empty
LeaveBasicKeysOn() disable all keys with the exception of basic keys
LeaveMemoryKeyOn() disable all keys with the exception of memory toggle key
⚠️ **GitHub.com Fallback** ⚠️