private void ExportTo(string exportType) { var subtitles = GetSelectedSubtitles(); if (subtitles == null) { return; } using (var formSubOcr = new VobSubOcr()) { formSubOcr.Initialize(subtitles, Configuration.Settings.VobSubOcr, _fileName, GetSelectedLanguage()); using (var exportBdnXmlPng = new ExportPngXml()) { exportBdnXmlPng.InitializeFromVobSubOcr(formSubOcr.SubtitleFromOcr, new SubRip(), exportType, _fileName, formSubOcr, GetSelectedLanguage()); exportBdnXmlPng.SetResolution(GetResolution()); exportBdnXmlPng.ShowDialog(this); } } }