Version

CalculatorEngine Class Members

The following tables list the members exposed by CalculatorEngine.

Public Constructors
 NameDescription
Public ConstructorCalculatorEngine ConstructorConstructs a new Calculator Engine Object  
Public Properties
 NameDescription
Public PropertyAutoDetectDecimalSymbolGets/Sets whether or not decimal symbol is taken from user defined prop or system locale  
Public PropertyAutoDetectGroupSymbolGets/Sets whether or not decimal symbol is taken from user defined prop or system locale  
Public PropertyDecimalSymbolValue used to display decimal  
Public PropertyDigitGroupingGets/Sets whether or not to use digit grouping  
Public PropertyDisplayStringReturns the locally formatted display string.  
Public PropertyDisplayValueReturns the display text as decimal  
Public PropertyGroupSizeSpecifies how many places left of the decimal for each group.  
Public PropertyGroupSymbolValue used to display group separator  
Public PropertyHasErrorOccurredGets whether or not an error has occured in default processing.  
Public PropertyHasMemoryValueUsed to determine if value is stored in memory  
Public PropertyMemoryValueAllows setting or getting of the memory value  
Protected Properties
 NameDescription
Protected PropertyButtonArrayListArray of internal button objects used for processing  
Protected PropertyCurrentOperatorCurrent operator being utilized  
Protected PropertyCurrentValueReturns current value as string.  
Protected PropertyHasCurrentValuedetermines if queue contains a value that can be operated on. operators can NEVER be added to the queue unless a value is present.  
Protected PropertyHasPreviousValueUsed to determine if previous value has been entered  
Protected PropertyListHasOperatorDetermines if an operator is in the list  
Protected PropertyPreviousValueReturns previous value as string.  
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  
Public Events
 NameDescription
Public EventAfterActionButtonPressedAfterActionButtonPressed  
Public EventAfterButtonClickedEvent that occurs after a calculator button has been clicked  
Public EventAfterCalculateImmediateafter immediate calculation  
Public EventAfterCalculatePendingFires after pending calculation  
Public EventAfterCalculationCompleteSince some calculations may actually contain multiple steps This event fires when all calculations initiated by operator clicks are completed.  
Public EventBeforeActionButtonPressedFires on before action occurs, allowing user to cancel default calculation and or change the values  
Public EventBeforeButtonClickedFires before any button is clicked  
Public EventBeforeCalculateImmediateFires on before immediate Calculation, allowing user to cancel default calculation and or change the values  
Public EventBeforeCalculatePendingFires on before pending Calculation, allowing user to cancel default calculation and or change the values  
Public EventDefaultCalculationFailFired on Failure of default calculation  
See Also