Beispiel #1
0
        private void PrevTimelineEvent()
        {
            int setTime = -1;

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

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

                default:
                    break;
                }

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