Ejemplo n.º 1
0
 //Edit subtitle
 private void editSubtitleToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MediaFile sub = MediaFileManager.Instance.GetSubtitleFile((MediaFile)((OLVListItem)lstCandidateFiles.Items[lstCandidateFiles.SelectedIndices[0]]).RowObject);
     MediaFile video = MediaFileManager.Instance.GetVideo((MediaFile)((OLVListItem)lstCandidateFiles.Items[lstCandidateFiles.SelectedIndices[0]]).RowObject);
     if (sub != null) {
         string path = sub.FilePath.Path + Path.DirectorySeparatorChar + sub.Filename;
         string videopath = "";
         if (video != null) {
             videopath = video.FilePath.Path + Path.DirectorySeparatorChar + video.Filename;
         }
         EditSubtitles es = new EditSubtitles(path, videopath);
         es.ShowDialog();
     }
 }
Ejemplo n.º 2
0
        private void BtnEditSubtitle_Click(object sender, EventArgs e)
        {
            TimeSpan ts = TimeSpan.FromMilliseconds(trackBar.Value);

            EditSubtitles?.Invoke(ts, null);
        }