public void SelectItem(int participantIndex, int itemIndex) { var entry = _entryCollections[participantIndex][itemIndex]; _selectedEntry = entry; this.Invalidate(); this.ItemSelected?.Invoke(this, new ItemEventArgs(entry)); }
public void AddEntry(RaceChartEntry entry, int participantIndex) { var entries = _entryCollections[participantIndex]; var count = entries.Count; entries.Add(entry); entry.ParticipantIndex = participantIndex; entry.Index = count; _allEntries = this.BuildAllEntries(); this.RecalculateSizes(); this.RefreshScrollBars(); this.Invalidate(); }
public ItemEventArgs(RaceChartEntry entry) { this.Entry = entry; }
public void UnselectItem() { _selectedEntry = null; this.Invalidate(); this.ItemUnselected?.Invoke(this, EventArgs.Empty); }