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(); } }
internal void UpdateEndFrameFromTimes(float frameRate) { frames.PreciseEnd = TimingUtil.TimeToFrames(times.PreciseEnd, frameRate); }
internal void UpdateStartFrameFromTimes(float frameRate) { frames.PreciseStart = TimingUtil.TimeToFrames(times.PreciseStart, frameRate); }