MemoryItem - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki

Namespace: UserControlClassLibrary
Extends: UserControl
Implements: IMemoryItem

Description: Displays a value stored in calculator memory and provide options to modify the value.

Constructors Usage
MemoryItem() Initializes an instance of MemoryItem class
MemoryItem(int, decimal, IFormatter, IHelper) Initializes an instance of MemoryItem class with injected services
Events Usage
OnDelete(object, EventArgs) when memory item is deleted
OnMinus(object, EventArgs) when value is subtracted from memory item
OnPlus(object, EventArgs) when value is added to memory item
OnSelect(object, EventArgs) when memory item is selected
Properties Usage
Key<int> get index of stored value in calculator memory
RawValue<decimal> get original value stored in memory item
FormattedValue<string> get formatted, more human-readable value for display
Methods Usage
DisplayValue() display stored value
⚠️ **GitHub.com Fallback** ⚠️