Example #1
0
        //private void StopTimer()
        //{
        //    _timer.Stop();
        //    _timer = null;
        //}

        public DbPositionState GetState()
        {
            var state = PositionState;

            if (state == null)
            {
                return(null);
            }

            var args = PositionState.GetArgs();

            args.StateName  = state.GetType().ToString();
            args.Instrument = _instrument;

            state.Copy(args, _stopObj);

            return(args);
        }