コード例 #1
0
        /// <summary>
        /// Changes the current tracking method to the given tracking method.
        /// </summary>
        /// <param name="newTrackingMethod">New tracking method.</param>
        public void ChangeTrackingMethod(TrackingMethodBase newTrackingMethod)
        {
            if (newTrackingMethod != null && _currentTrackingMethod != newTrackingMethod)
            {
                if (_currentTrackingMethod != null)
                {
                    _currentTrackingMethod.StopTracking();
                }

                _currentTrackingMethod = newTrackingMethod;
                _currentTrackingMethod.StartTracking();
            }
        }