HistoryItem - YiZhang-Paul/Mock_Up_Calculator GitHub Wiki
Namespace: UserControlClassLibrary
Extends: UserControl
Implements: IHistoryItem
Description: Displays an expression stored in calculator history.
Constructors | Usage |
---|---|
HistoryItem() | Initializes an instance of HistoryItem class |
HistoryItem(string, decimal, IFormatter, IFormatter, IHelper) | Initializes an instance of HistoryItem class with injected services |
Events | Usage |
---|---|
OnSelect(object, EventArgs) | when history item is selected |
Properties | Usage |
---|---|
RawExpression<string> | original math expression stored |
FormattedExpression<string> | formatted, more human-readable math expression |
RawResult<decimal> | result from evaluating expression |
FormattedResult<string> | formatted, more human-readable result for display |