private void btConfigure_Click(object sender, EventArgs e) { switch (cbOutputFormat.SelectedIndex) { case 0: case 1: { if (aviSettingsDialog == null) { aviSettingsDialog = new AVISettingsDialog(VideoEdit1); } aviSettingsDialog.ShowDialog(this); break; } case 2: { if (wmvSettingsDialog == null) { wmvSettingsDialog = new WMVSettingsDialog(VideoEdit1); } wmvSettingsDialog.WMA = false; wmvSettingsDialog.ShowDialog(this); break; } case 3: { if (dvSettingsDialog == null) { dvSettingsDialog = new DVSettingsDialog(); } dvSettingsDialog.ShowDialog(this); break; } case 4: { if (webmSettingsDialog == null) { webmSettingsDialog = new WebMSettingsDialog(); } webmSettingsDialog.ShowDialog(this); break; } case 5: { if (ffmpegSettingsDialog == null) { ffmpegSettingsDialog = new FFMPEGSettingsDialog(); } ffmpegSettingsDialog.ShowDialog(this); break; } case 6: { if (ffmpegEXESettingsDialog == null) { ffmpegEXESettingsDialog = new FFMPEGEXESettingsDialog(); } ffmpegEXESettingsDialog.ShowDialog(this); break; } case 7: case 10: { if (mp4SettingsDialog == null) { mp4SettingsDialog = new MP4SettingsDialog(); } mp4SettingsDialog.ShowDialog(this); break; } case 8: { if (mp4HWSettingsDialog == null) { mp4HWSettingsDialog = new HWEncodersOutputSettingsDialog(HWSettingsDialogMode.MP4); } mp4HWSettingsDialog.ShowDialog(this); break; } case 9: { if (gifSettingsDialog == null) { gifSettingsDialog = new GIFSettingsDialog(); } gifSettingsDialog.ShowDialog(this); break; } } }
private void BtConfigure_Click(object sender, EventArgs e) { switch (cbOutputVideoFormat.SelectedIndex) { case 0: case 1: { if (aviSettingsDialog == null) { aviSettingsDialog = new AVISettingsDialog(VideoEdit1); } aviSettingsDialog.ShowDialog(this); break; } case 2: { if (wmvSettingsDialog == null) { wmvSettingsDialog = new WMVSettingsDialog(VideoEdit1); } wmvSettingsDialog.WMA = false; wmvSettingsDialog.ShowDialog(this); break; } case 3: { if (dvSettingsDialog == null) { dvSettingsDialog = new DVSettingsDialog(); } dvSettingsDialog.ShowDialog(this); break; } case 4: { if (pcmSettingsDialog == null) { pcmSettingsDialog = new PCMSettingsDialog(VideoEdit1); } pcmSettingsDialog.ShowDialog(this); break; } case 5: { if (mp3SettingsDialog == null) { mp3SettingsDialog = new MP3SettingsDialog(); } mp3SettingsDialog.ShowDialog(this); break; } case 6: { if (m4aSettingsDialog == null) { m4aSettingsDialog = new M4ASettingsDialog(); } m4aSettingsDialog.ShowDialog(this); break; } case 7: { if (wmvSettingsDialog == null) { wmvSettingsDialog = new WMVSettingsDialog(VideoEdit1); } wmvSettingsDialog.WMA = true; wmvSettingsDialog.ShowDialog(this); break; } case 8: { if (oggVorbisSettingsDialog == null) { oggVorbisSettingsDialog = new OggVorbisSettingsDialog(); } oggVorbisSettingsDialog.ShowDialog(this); break; } case 9: { if (flacSettingsDialog == null) { flacSettingsDialog = new FLACSettingsDialog(); } flacSettingsDialog.ShowDialog(this); break; } case 10: { if (speexSettingsDialog == null) { speexSettingsDialog = new SpeexSettingsDialog(); } speexSettingsDialog.ShowDialog(this); break; } case 11: { if (customFormatSettingsDialog == null) { customFormatSettingsDialog = new CustomFormatSettingsDialog(VideoEdit1); } customFormatSettingsDialog.ShowDialog(this); break; } case 12: { if (webmSettingsDialog == null) { webmSettingsDialog = new WebMSettingsDialog(); } webmSettingsDialog.ShowDialog(this); break; } case 13: { if (ffmpegSettingsDialog == null) { ffmpegSettingsDialog = new FFMPEGSettingsDialog(); } ffmpegSettingsDialog.ShowDialog(this); break; } case 14: { if (ffmpegEXESettingsDialog == null) { ffmpegEXESettingsDialog = new FFMPEGEXESettingsDialog(); } ffmpegEXESettingsDialog.ShowDialog(this); break; } case 15: case 18: { if (this.mp4SettingsDialog == null) { this.mp4SettingsDialog = new MP4SettingsDialog(); } this.mp4SettingsDialog.ShowDialog(this); break; } case 16: { if (mp4HWSettingsDialog == null) { mp4HWSettingsDialog = new HWEncodersOutputSettingsDialog(HWSettingsDialogMode.MP4); } mp4HWSettingsDialog.ShowDialog(this); break; } case 17: { if (gifSettingsDialog == null) { gifSettingsDialog = new GIFSettingsDialog(); } gifSettingsDialog.ShowDialog(this); break; } } }