private void OnHighlightChanged() { if (HighlightChanged != null) { HighlightChanged.Invoke(); } }
/// <summary> /// Toggles the highlight flag for the specified index. /// </summary> /// <param name="index">The index for which the highlight should be toggled.</param> public virtual void ToogleItemHighlight(int index) { _highlightedItems[index] = !_highlightedItems[index]; HighlightChanged?.Invoke(this, index); if (index >= _selectedMinItem || index < _selectedMaxItem) { DataUpdated?.Invoke(this, new DataPresenterEventArgs()); } }
private void OnHighlightChanged(object sender, bool e) { HighlightChanged?.Invoke(sender, e); }