void PositionFilterStatsPanel_FinishStateFilterChanged(object sender, FinishingState e) { if (finishStateFilterSelect.SelectedIndex != (int)e) { finishStateFilterSelect.SelectedIndex = (int)e; } SetStatisticFilter(); }
public void SetFinishingState(FinishingState state) { FinishingState = state; this.BackColor = finishStateColours[(int)FinishingState]; foreach (var finishingState in (FinishingState[])Enum.GetValues(typeof(FinishingState))) { ((IndexedToolStripButton)thisContextMenu.Items[(int)finishingState]).Checked = (finishingState == state); } }
void ResultGrid_FinishingStateChanged(object sender, FinishingState e) { if (DisplayType == ResultDisplayType.ByPosition) { ResultTextBox textBox = (ResultTextBox)sender; int round = textBox.Column; int changedRow = textBox.Row; for (int row = changedRow + 1; row < Data.NumberOfDrivers; row++) { DataBoxes[row, round].SetFinishingState(e); } } }
public void SetFinishStateLimit(FinishingState finishStateLimit) { this.finishStateLimit = finishStateLimit; }
protected override void SetSortParameters() { base.SetSortParameters(); PositionFilter = Statistic.PositionLimit; FinishStateFilter = Statistic.FinishStateLimit; }
void finishStateFilterSelect_SelectedIndexChanged(object sender, EventArgs e) { FinishStateFilter = (FinishingState)finishStateFilterSelect.SelectedIndex; }