Пример #1
0
 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();
     }
 }
Пример #2
0
 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();
     }
 }
Пример #3
0
 internal void UpdateEndFrameFromTimes(float frameRate)
 {
     frames.PreciseEnd = TimingUtil.TimeToFrames(times.PreciseEnd, frameRate);
 }
Пример #4
0
 internal void UpdateStartFrameFromTimes(float frameRate)
 {
     frames.PreciseStart = TimingUtil.TimeToFrames(times.PreciseStart, frameRate);
 }