Exemplo n.º 1
0
 private void UpdateLabels(bool refresh = false)
 {
     if (_replayController.PlayListReplays.Count == 0)
     {
         return;
     }
     TimeBox.Text  = _replayController.CurrentTime.ToTimeString();
     timeBar.Value =
         (int)(Math.Min(_replayController.CurrentTime, _replayController.MaxTime) / _replayController.MaxTime * timeBar.Maximum);
     ShowCoordinates();
     SpeedLabel.Text = "Speed: " + _replayController.GetSpeed().ToString("F2");
     if (refresh)
     {
         TimeBox.Refresh();
         SpeedLabel.Refresh();
         CoordinateLabel.Refresh();
     }
 }