Beispiel #1
0
        void ISimpleVisualizationActor.StopAndSetOrClearPrimaryTime(TimeSpan?time)
        {
            StopTimers();

            primaryTimeMillisecondsMeasured = TextFormatting.FormatMilliseconds(time);
            UpdatePrimaryTime(time, true);
        }
Beispiel #2
0
        void ISimpleVisualizationActor.SetOrClearSecondaryTime(TimeSpan?time)
        {
            if (time == null)
            {
                secondaryTime = null;
            }
            else
            {
                secondaryTime = new SecondaryTime(time.Value);
                primaryTimeSecondsLabel.Text = TextFormatting.FormatSeconds(secondaryTime.Value.TimeValue);

                if (!IsEliminated)
                {
                    primaryTimeMillisecondsLabel.Text = TextFormatting.FormatMilliseconds(secondaryTime.Value.TimeValue);
                }
            }
        }