コード例 #1
0
ファイル: RaceChart.cs プロジェクト: taucode/keeker
        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
ファイル: RaceChart.cs プロジェクト: taucode/keeker
        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
ファイル: RaceChart.cs プロジェクト: taucode/keeker
 public ItemEventArgs(RaceChartEntry entry)
 {
     this.Entry = entry;
 }
コード例 #4
0
ファイル: RaceChart.cs プロジェクト: taucode/keeker
 public void UnselectItem()
 {
     _selectedEntry = null;
     this.Invalidate();
     this.ItemUnselected?.Invoke(this, EventArgs.Empty);
 }