Exemplo n.º 1
0
 private void PlainTextToolStripMenuItemClick(object sender, EventArgs e)
 {
     var exportText = new ExportText();
     exportText.Initialize(_subtitle, _fileName);
     if (exportText.ShowDialog() == DialogResult.OK)
     {
         ShowStatus(Configuration.Settings.Language.Main.SubtitleExported);
     }
 }
Exemplo n.º 2
0
 private void PlainTextToolStripMenuItemClick(object sender, EventArgs e)
 {
     using (var exportText = new ExportText())
     {
         exportText.Initialize(_subtitle, _fileName);
         if (exportText.ShowDialog() == DialogResult.OK)
         {
             ShowStatus(_language.SubtitleExported);
         }
     }
 }
Exemplo n.º 3
0
 private void ButtonStylesClick(object sender, EventArgs e)
 {
     if (comboBoxSubtitleFormats.Text == AdvancedSubStationAlpha.NameOfFormat || comboBoxSubtitleFormats.Text == SubStationAlpha.NameOfFormat)
     {
         ShowAssSsaStyles();
     }
     else if (comboBoxSubtitleFormats.Text == Ebu.NameOfFormat)
     {
         ShowEbuSettings();
     }
     else if (comboBoxSubtitleFormats.Text == BluRaySubtitle)
     {
         ShowBluraySettings();
     }
     else if (comboBoxSubtitleFormats.Text == VobSubSubtitle)
     {
         VobSubSettings();
     }
     else if (comboBoxSubtitleFormats.Text == Configuration.Settings.Language.BatchConvert.PlainText)
     {
         using (var form = new ExportText())
         {
             var s = new Subtitle();
             s.Paragraphs.Add(new Paragraph("Test 123." + Environment.NewLine + "Test 456.", 0, 4000));
             s.Paragraphs.Add(new Paragraph("Test 789.", 5000, 9000));
             form.Initialize(s, null);
             form.PrepareForBatchSettings();
             form.ShowDialog(this);
         }
     }
     else if (comboBoxSubtitleFormats.Text == Configuration.Settings.Language.ExportCustomText.Title)
     {
         ShowExportCustomTextSettings();
     }
 }