OdessaGUIProject.HighlightDetailsForm.UpdateTickBoxLocations C# (CSharp) Method

UpdateTickBoxLocations() private method

private UpdateTickBoxLocations ( bool includePlayHead = true ) : void
includePlayHead bool
return void
        private void UpdateTickBoxLocations(bool includePlayHead = true)
        {
            if (_currentHighlight != null)
            {
                MoveStartTickBoxToPosition(_currentHighlight.StartTime.TotalSeconds);
                MoveEndTickBoxToPosition(_currentHighlight.EndTime.TotalSeconds);
                MoveBookmarkToPosition(_currentHighlight.BookmarkTime.TotalSeconds);
                UpdateHighlightTimeline();
                UpdateTutorialBubbleCoordinates();
                UpdateHighlightDurationLabel();
            }

            if (includePlayHead &&
                videoPlayer != null &&
                videoPlayer.PlayState != GenericPlayerControl.PlayStates.NoVideo &&
                videoPlayer.CurrentPosition > 0)
                MovePlayHeadToPosition(videoPlayer.CurrentPosition);
        }
HighlightDetailsForm