void TimerTicked(object sender, EventArgs e) { trackBar.Value = (int)video.CurrentPosition; timeCodeLabel.Text = TimeSpan.FromSeconds(video.CurrentPosition).ToString(@"hh\:mm\:ss") + " / " + TimeSpan.FromSeconds(video.Duration).ToString(@"hh\:mm\:ss"); if (cut.Checked && (int)video.CurrentPosition == checkpoint) { NextSegmentRequested?.Invoke(this, null); } }
public void Play() { if (video == null) { return; } if (checkpoint == -100 && cut.Checked) { NextSegmentRequested?.Invoke(this, null); return; } video.Play(); timer.Start(); TimerTicked(this, null); playBtn.Text = "\x23F8"; }
void NextClicked(object sender, EventArgs e) => NextSegmentRequested?.Invoke(this, null);