protected override void OnSelectionChanged(System.EventArgs e)
        {
            base.OnSelectionChanged(e);

            // restore cached settings
            highlightCache?.ResetShapeColors();
            highlightCache = null;

            if (PrimarySelection is ModelElement modelElement &&
                PresentationViewsSubject.GetPresentation(modelElement).FirstOrDefault() is IHighlightFromModelExplorer selectedShape)
            {
                highlightCache = new HighlightCache(selectedShape);
                highlightCache.SetShapeColors();
            }
        }
 public static void ClearHighlight()
 {
     highlightCache?.ResetShapeColors();
     highlightCache = null;
 }
 public HighlightProcessor(int gameweek, int leagueId)
 {
     _highlightCache = new HighlightCache(gameweek);
     _gameweek       = gameweek;
     _leagueId       = leagueId;
 }