Exemplo n.º 1
0
        public DisplayStatusControl()
        {
            InitializeComponent();

            var timerFontContainer = new TimerFontContainer(ref components);

            timerFontContainer.ApplyTo(primaryTimeSecondsLabel, primaryTimeMillisecondsLabel, currentFaultsValueLabel, currentRefusalsValueLabel,
                                       currentCompetitorNumberLabel, previousCompetitorPlacementLabel, nextCompetitorNumberLabel);
        }
        public TimerDisplayForm()
        {
            InitializeComponent();

            // ReSharper disable once RedundantExplicitArraySize
            // Justification: Extra compiler check when number of lines changes.
            historyLines = new RunHistoryLine[HistoryLineCount]
            {
                runHistoryLine1,
                runHistoryLine2,
                runHistoryLine3,
                runHistoryLine4,
                runHistoryLine5
            };

            var timerFontContainer = new TimerFontContainer(ref components);

            timerFontContainer.ApplyTo(primaryTimeLabel, secondaryTimeLabel);
        }