Пример #1
0
 public void Division(int value)
 {
     _total /= value;
     _undo   = false;
     stack.Push(OperStruct.OperSet(Division, value));
 }
Пример #2
0
 public void Subtract(int value)
 {
     _total -= value;
     _undo   = false;
     stack.Push(OperStruct.OperSet(Subtract, value));
 }
Пример #3
0
 public void Multiply(int value)
 {
     _total *= value;
     _undo   = false;
     stack.Push(OperStruct.OperSet(Multiply, value));
 }
Пример #4
0
 public void Add(int value)
 {
     _total += value;
     _undo   = false;
     stack.Push(OperStruct.OperSet(Add, value));
 }