Exemplo n.º 1
0
 private void AppendComma()
 {
     if (CurrentState.CanAppendComma())
     {
         Append(',');
     }
 }
Exemplo n.º 2
0
 private void DisableInvalidButtons()
 {
     ToggleButtonGroup(CurrentState.CanAppendFunction(), functionNames);
     ToggleButtonGroup(CurrentState.CanAppendOperator(), operatorNames);
     ToggleButtonGroup(CurrentState.CanAppendNumber(), numberNames);
     ToggleButtonGroup(CurrentState.CanAppendDecimal(), "decimal");
     ToggleButtonGroup(CurrentState.CanAppendParen(true), "lparen");
     ToggleButtonGroup(CurrentState.CanAppendParen(false), "rparen");
     ToggleButtonGroup(CurrentState.CanAppendComma(), "comma");
     ToggleButtonGroup(CurrentState.CanAppendUnaryMinus() || CurrentState.CanAppendOperator(), "subtract");
     ToggleButtonGroup(CurrentState.CanEvaluate(), "evaluate");
 }