jCalc/Calculator.xaml.cs
/// <summary>
/// Apply current pending operation and update displayEntry with results
/// </summary>
Apply current pending operation and update displayEntry with results
Apply current pending operation and update displayEntry with results
public void FlushOperation()
        {
            ClearTicker();
            if (pendingOperationLocked)
            {
                Process(Convert.ToDouble(displayEntry));
                ReplaceEntry(currentResult.ToString());
            }
            currentResult = 0;
            pendingOperation = Operation.NONE;
            pendingOperationLocked = true;
        }
public void FlushOperation ( ) { ClearTicker ( ) ; if ( pendingOperationLocked ) { Process ( Convert . ToDouble ( displayEntry ) ) ; ReplaceEntry ( currentResult . ToString ( ) ) ; } currentResult = 0 ; pendingOperation = Operation . NONE ; pendingOperationLocked = true ; }
Apply current pending operation and update displayEntry with results
Apply current pending operation and update displayEntry with results
// Pending operation is locked, apply pending and display new result