public MkvMergeAction(Episode ep) : this() { MkvInfo = MkvInfo.Parse(ep.fileInfo.FullName); MkvFileInfo = ep.fileInfo; Episode = ep; LoadFolderSubs(MkvFileInfo.DirectoryName); }
private void LoadFile(string file) { var fi = new FileInfo(file); if (fi.Extension != ".mkv") { MessageBox.Show("File '" + fi.Name + "' is not an mkv"); return; } Episode ep = new Episode(fi); MkvMergeAction mergeAction = new MkvMergeAction(ep); Invoke(new NewRowDelegate(NewRow), fi, mergeAction); }