示例#1
0
        public void SelectItem(int participantIndex, int itemIndex)
        {
            var entry = _entryCollections[participantIndex][itemIndex];

            _selectedEntry = entry;

            this.Invalidate();

            this.ItemSelected?.Invoke(this, new ItemEventArgs(entry));
        }
示例#2
0
        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();
        }
示例#3
0
 public ItemEventArgs(RaceChartEntry entry)
 {
     this.Entry = entry;
 }
示例#4
0
 public void UnselectItem()
 {
     _selectedEntry = null;
     this.Invalidate();
     this.ItemUnselected?.Invoke(this, EventArgs.Empty);
 }