private void btn_C_Click(object sender, EventArgs e) { click.Play(); ob = new operationBuffer(); value = new Value(); rawValue = ""; updateDisplay(); }
private void pushOp(operation op) { click.Play(); if (terminate) { ob = new operationBuffer(); rawValue = ""; } terminate = false; value.ParseValue(rawValue); ob.Add(new valueOp(value, op)); button_CE_Click(null, null); updateDisplay(); }
void addDigit(char digit) { click.Play(); if (rawValue.Length >= maxLength) { return; } if (terminate) { rawValue = ""; ob = new operationBuffer(); } terminate = false; rawValue += digit; updateDisplay(); }