private void cbAudioCodecs_SelectedIndexChanged(object sender, EventArgs e) { string name = cbAudioCodecs.Text; btAudioSettings.Enabled = VideoCapture.Audio_Codec_Has_Dialog(name, VFPropertyPage.Default) || VideoCapture.Audio_Codec_Has_Dialog(name, VFPropertyPage.VFWCompConfig); }
private void cbAudioCodecs_SelectedIndexChanged(object sender, SelectionChangedEventArgs e) { if (e == null || e.AddedItems.Count == 0) { return; } string name = e.AddedItems[0].ToString(); btAudioSettings.IsEnabled = VideoCapture.Audio_Codec_Has_Dialog(name, VFPropertyPage.Default) || VideoCapture.Audio_Codec_Has_Dialog(name, VFPropertyPage.VFWCompConfig); }
private void btAudioSettings_Click(object sender, RoutedEventArgs e) { string name = cbAudioCodecs.Text; if (VideoCapture.Audio_Codec_Has_Dialog(name, VFPropertyPage.Default)) { VideoCapture.Audio_Codec_Show_Dialog(IntPtr.Zero, name, VFPropertyPage.Default); } else { if (VideoCapture.Audio_Codec_Has_Dialog(name, VFPropertyPage.VFWCompConfig)) { VideoCapture.Audio_Codec_Show_Dialog(IntPtr.Zero, name, VFPropertyPage.VFWCompConfig); } } }