コード例 #1
0
        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();
                }
            }
        }
コード例 #2
0
 private void InitTask()
 {
     tt = new Task(() => MediaControl.EditSubtitleAsync(Video, lblSubtitle, subtitle));
 }