Example #1
0
        private void RunCommand()
        {
            if (CurResult.IsNull())
            {
                return;
            }

            CurResult.Do();
        }
Example #2
0
        public void Iterate()
        {
            var state = CurResult.CompareTo(_targetResult);

            if (state > 0)
            {
                Value -= _step;
            }
            else if (state < 0)
            {
                Value += _step;
            }
            if (state > 0 && _previousState < 0)
            {
                _step /= 10;
            }
            _previousState = state;
        }