Beispiel #1
0
        private void btn_C_Click(object sender, EventArgs e)
        {
            click.Play();

            ob       = new operationBuffer();
            value    = new Value();
            rawValue = "";
            updateDisplay();
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
        void addDigit(char digit)
        {
            click.Play();

            if (rawValue.Length >= maxLength)
            {
                return;
            }

            if (terminate)
            {
                rawValue = "";
                ob       = new operationBuffer();
            }
            terminate = false;
            rawValue += digit;
            updateDisplay();
        }