Example #1
0
        internal virtual void butEqal_Click(object sender, EventArgs e)
        {
            if (!checkedResult)
            {
                Result(firstNum);
            }
            checkedResult = true;
            oper          = null;

            FocusTextBox();
        }
Example #2
0
        protected virtual void butAdd_Click(object sender, EventArgs e)
        {
            if (!chClickZnack)
            {
                if (oper != null)
                {
                    Result(firstNum);
                }

                Reading(sender, e);
                oper        += Add;
                chClickZnack = true;
            }

            FocusTextBox();
        }
Example #3
0
        protected virtual void butDivision_Click(object sender, EventArgs e)
        {
            if (!chClickZnack)
            {
                if (oper != null)
                {
                    Result(firstNum);
                }
                if (!chClickZnack)
                {
                    Reading(sender, e);
                }
                oper        += Divide;
                chClickZnack = true;
            }

            FocusTextBox();
        }