private void dispatcherTick(object sender, EventArgs e) { MediaControl.PrintTimer(Video, lblTime); if (MediaControl.subtitleState) { MediaControl.PrintSubtitle(lblSubtitle); if (tt.Status != TaskStatus.Running) { tt = new Task(() => MediaControl.EditSubtitleAsync(Video, lblSubtitle, subtitle)); tt.Start(); } } }
private void InitTask() { tt = new Task(() => MediaControl.EditSubtitleAsync(Video, lblSubtitle, subtitle)); }