Exemplo n.º 1
0
        private void btn_C_Click(object sender, EventArgs e)
        {
            click.Play();

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

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

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