private void UpdateLengthLabel(TimingMode timingMode, TimeSpan length)
 {
     if (timingMode == TimingMode.Times)
     {
         lengthValueLabel.Text = Util.TimeSpanToText(length);
     }
     else
     {
         double frames = (length == TimeSpan.Zero ? 0 : TimingUtil.TimeToFrames(length, player.FrameRate));
         lengthValueLabel.Text = Convert.ToInt32(frames).ToString();
     }
 }
 private void UpdatePositionValueLabel(TimeSpan newPosition)
 {
     if (Base.TimingMode == TimingMode.Times)
     {
         positionValueLabel.Text = Util.TimeSpanToText(newPosition);
     }
     else
     {
         double frames = (newPosition == TimeSpan.Zero ? 0 : TimingUtil.TimeToFrames(newPosition, player.FrameRate));
         positionValueLabel.Text = Convert.ToInt32(frames).ToString();
     }
 }
Example #3
0
 internal void UpdateEndFrameFromTimes(float frameRate)
 {
     frames.PreciseEnd = TimingUtil.TimeToFrames(times.PreciseEnd, frameRate);
 }
Example #4
0
 internal void UpdateStartFrameFromTimes(float frameRate)
 {
     frames.PreciseStart = TimingUtil.TimeToFrames(times.PreciseStart, frameRate);
 }