VixenModules.Editor.TimedSequenceEditor.MarkManager.handlePlaybackModeTick C# (CSharp) Method

handlePlaybackModeTick() private method

private handlePlaybackModeTick ( ) : void
return void
        private void handlePlaybackModeTick()
        {
            if (_timingSource.Position.CompareTo(_currentPlayPosition) > 0)
            {
                int newMarkIndex = _displayedCollection.Marks.FindIndex(x => x <= _timingSource.Position && x > _currentPlayPosition);
                _currentPlayPosition = _timingSource.Position;

                if (newMarkIndex != -1)
                {
                    panelMarkView.BackColor = _displayedCollection.MarkColor;
                    _lastMarkHit = _displayedCollection.Marks[newMarkIndex].Duration();
                    textBoxCurrentMark.Text = _lastMarkHit.ToString(@"m\:ss\.fff");
                    timerMarkHit.Start();
                }
            }
        }