示例#1
0
        private void NextTimelineEvent()
        {
            int setTime = -1;

            if (TimelineSession != null && TimelineSession.Duration > 0)
            {
                switch (UserPreferencesManager.Instance.UserPreferences.TimelineNavigationSnap)
                {
                case TimelineNavigationSnapMode.BinaryStorage:
                {
                    if (BinaryStorage != null)
                    {
                        setTime = BinaryStorage.GetNextTimelineEventTime(TimelineSession.PlaybackPosition);
                    }
                }
                break;

                case TimelineNavigationSnapMode.DebugModule:
                {
                    if (CurrentDebugModule != null)
                    {
                        setTime = CurrentDebugModule.GetNextTimelineEventTime(TimelineSession.PlaybackPosition);
                    }
                }
                break;

                default:
                    break;
                }

                if (setTime != -1)
                {
                    TimelineSession.PlaybackPosition = setTime;
                    SendBackBinaryData(setTime);
                }
            }
        }