Example #1
0
 public EncoderProgramForm(VideoEncoder encoder)
 {
     this.encoder = encoder;
     InitializeComponent();
     txtName.Text = encoder.Name ?? "";
     txtPath.Text = encoder.Path ?? "";
     txtArguments.Text = encoder.Args ?? "";
     txtExtension.Text = encoder.OutputExtension ?? "";
 }
Example #2
0
 private void AddVideoEncoder(VideoEncoder encoder)
 {
     ListViewItem lvi = new ListViewItem(encoder.Name ?? "");
     lvi.Tag = encoder;
     lvi.SubItems.Add(encoder.Path ?? "");
     lvi.SubItems.Add(encoder.Args ?? "");
     lvi.SubItems.Add(encoder.OutputExtension ?? "");
     lvEncoders.Items.Add(lvi);
 }