StatusItem
Stores calculator values, operation metadata, and formatted history for an undo/redo entry.
Definition
Namespace:Telerik.WinControls.UI.Calculator
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class StatusItem
Inheritance: objectStatusItem
Constructors
Initializes an empty calculator status entry.
public StatusItem()
Initializes a status entry with a calculated value and its associated operation.
Properties
Gets or sets the calculated value saved for this history entry.
public decimal CalculatedValueStatus { get; set; }
Gets or sets the formatted history text, creating its builder on first access.
public StringBuilder HistoryStatus { get; set; }
Gets or sets the operation used when restoring this history entry.
public Operation OperationStatus { get; set; }
Gets or sets the leading fragment used to build this entry's history text.
public string PartA { get; set; }
Methods
Builds this entry's history text from an operation and input, continuing the expression when a previous entry is supplied.
public void FormatHistoryStatus(StatusItem previousStatusItem, Operation operation, decimal inputValue, bool isOperationExecuted)
The preceding history entry, or null to start a new expression.
operationOperationThe operation to represent in the history text.
inputValuedecimalThe value used to format the operation's history fragment.
isOperationExecutedbooltrue when the preceding operation has already been executed.