public CalculatorPortable(IButton [] buttons, IButton [] operators, IResultText resultTxt, IResultText secondTxt) { _buttons = buttons; _operators = operators; AddNumbersListeners(); AddOperatorsListeners(); _mainText = resultTxt; _secondText = secondTxt; tedt(); }
private void SetText(IResultText textField, decimal number) { }
private void SetText(IResultText textField, decimal number, string oper) { textField.TextContent = number.ToString() + oper; }
private decimal NumberParser(IResultText T) { return(decimal.Parse(T.TextContent)); }