mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
[VobSubOcr] - Remove duplication.
This commit is contained in:
parent
8715273a87
commit
ced956c493
@ -8445,32 +8445,25 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
|
||||
private void vobSubToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var exportBdnXmlPng = new ExportPngXml())
|
||||
{
|
||||
_fromMenuItem = true;
|
||||
exportBdnXmlPng.InitializeFromVobSubOcr(_subtitle, new SubRip(), "VOBSUB", FileName, this, _importLanguageString);
|
||||
exportBdnXmlPng.ShowDialog(this);
|
||||
_fromMenuItem = false;
|
||||
}
|
||||
ExportToPngXml("VOBSUB");
|
||||
}
|
||||
|
||||
private void bluraySupToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var exportBdnXmlPng = new ExportPngXml())
|
||||
{
|
||||
_fromMenuItem = true;
|
||||
exportBdnXmlPng.InitializeFromVobSubOcr(_subtitle, new SubRip(), "BLURAYSUP", FileName, this, _importLanguageString);
|
||||
exportBdnXmlPng.ShowDialog(this);
|
||||
_fromMenuItem = false;
|
||||
}
|
||||
ExportToPngXml("BLURAYSUP");
|
||||
}
|
||||
|
||||
private void bDNXMLToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
ExportToPngXml("BDNXML");
|
||||
}
|
||||
|
||||
private void ExportToPngXml(string exportType)
|
||||
{
|
||||
using (var exportBdnXmlPng = new ExportPngXml())
|
||||
{
|
||||
_fromMenuItem = true;
|
||||
exportBdnXmlPng.InitializeFromVobSubOcr(_subtitle, new SubRip(), "BDNXML", FileName, this, _importLanguageString);
|
||||
exportBdnXmlPng.InitializeFromVobSubOcr(_subtitle, new SubRip(), exportType, FileName, this, _importLanguageString);
|
||||
exportBdnXmlPng.ShowDialog(this);
|
||||
_fromMenuItem = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user