示例#1
0
        //Добавить

        public void Add(TNumber E)

        {
            if (state == 1)
            {
                number = number.Summ(E);
            }

            else
            {
                Write(E);
            }
        }
示例#2
0
        //Выполнить операцию

        public void ExeuteOperation()
        {
            switch (operation)
            {
            case 1: Lop_Res = Lop_Res.Summ(Rop); break;

            case 2: Lop_Res = Lop_Res.Sub(Rop); break;

            case 3: Lop_Res = Lop_Res.Mult(Rop); break;

            case 4: Lop_Res = Lop_Res.Div(Rop); break;

            default: break;
            }
        }