Version

CalculatorEngine Class Methods

For a list of all members of this type, see CalculatorEngine members.

Public Methods
 NameDescription
Public MethodBackSpaceErases the last character entered.  
Public MethodClearAllClears everything  
Public MethodClearEntrySets the current value to 0, does not affect list in any other way  
Public MethodMemoryAddOverloaded. Adds the current value to memory  
Public MethodMemoryClearClears the memory  
Public MethodMemoryRecallPlaces memory value into current value  
Public MethodMemoryStoreOverloaded. Stores the current value in memory  
Public MethodPushButtonResponds to 'button presses' from 'calculator'  
Public MethodResetAutoDetectDecimalSymbolResets the AutoDetectDecimalSymbol property to its default value.  
Public MethodResetAutoDetectGroupSymbolResets the AutoDetectGroupSymbol property to its default value.  
Public MethodResetDecimalSymbolResets the DecimalSymbol property to its default value.  
Public MethodResetDigitGroupingResets the DigitGrouping property to its default value.  
Public MethodResetGroupSizeResets the GroupSize property to its default value.  
Public MethodResetGroupSymbolResets the GroupSymbol property to its default value.  
Public MethodShouldSerializeAutoDetectDecimalSymbol

Returns a Boolean value that determines whether the AutoDetectDecimalSymbol property is set to its default value.

 
Public MethodShouldSerializeAutoDetectGroupSymbol

Returns a Boolean value that determines whether the AutoDetectGroupSymbol property is set to its default value.

 
Public MethodShouldSerializeDecimalSymbol

Returns a Boolean value that determines whether the DecimalSymbol property is set to its default value.

 
Public MethodShouldSerializeDigitGrouping

Returns a Boolean value that determines whether the DigitGrouping property is set to its default value.

 
Public MethodShouldSerializeGroupSize

Returns a Boolean value that determines whether the GroupSize property is set to its default value.

 
Public MethodShouldSerializeGroupSymbol

Returns a Boolean value that determines whether the GroupSymbol property is set to its default value.

 
Protected Methods
 NameDescription
Protected MethodFireCalculationFailEventFires the CalculationFail event  
Protected MethodFormatDisplayStringFormats the current value of the calculator  
Protected MethodIsStringNumericTests the passed in string to ensure it is numeric  
Protected MethodOnAfterActionButtonPressedAfterActionButtonPressed  
Protected MethodOnAfterButtonClickedUsed to invoke the AfterButtonClicked event  
Protected MethodOnAfterCalculateImmediateafter immediate calculation  
Protected MethodOnAfterCalculatePendingFires after pending calculation  
Protected MethodOnAfterCalculationCompleteSince some calculations may actually contain multiple steps This event fires when all calculations initiated by operator clicks are completed.  
Protected MethodOnBeforeActionButtonPressedFires on before action occurs, allowing user to cancel default calculation and or change the values  
Protected MethodOnBeforeButtonClickedFires before button is clicked allowing user to cancel or change the button  
Protected MethodOnBeforeCalculateImmediateFires on before immediate Calculation, allowing user to cancel default calculation and or change the values  
Protected MethodOnBeforeCalculatePendingFires on before pending Calculation, allowing user to cancel default calculation and or change the values  
Protected MethodOnDefaultCalculationFailFired on Failure of default calculation  
See Also