Exemple #1
0
 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());
     }
 }
Exemple #3
0
 private void OnHighlightChanged(object sender, bool e)
 {
     HighlightChanged?.Invoke(sender, e);
 }