void PositionFilterStatsPanel_FinishStateFilterChanged(object sender, FinishingState e)
 {
     if (finishStateFilterSelect.SelectedIndex != (int)e)
     {
         finishStateFilterSelect.SelectedIndex = (int)e;
     }
     SetStatisticFilter();
 }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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);
                }
            }
        }
Esempio n. 4
0
 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;
 }