Exemplo n.º 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));
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
 public ItemEventArgs(RaceChartEntry entry)
 {
     this.Entry = entry;
 }
Exemplo n.º 4
0
 public void UnselectItem()
 {
     _selectedEntry = null;
     this.Invalidate();
     this.ItemUnselected?.Invoke(this, EventArgs.Empty);
 }