Esempio n. 1
0
 //deals with button inputs and sorts out the display accordingly
 public void DigitButtonPress(DigitButtonType buttonType)
 {
     calculatorManager.AppendDigit(buttonType.ToStringRepresentation());
     Display = calculatorManager.Display;
 }
Esempio n. 2
0
 private bool CanDigitButtonPress(DigitButtonType buttonType)
 {
     return(calculatorManager.IsValidDigit(buttonType.ToStringRepresentation()));
 }