private void LoadDefaults() { cbWMVVideoMode.SelectedIndex = 0; cbWMVAudioMode.SelectedIndex = 0; if (cbWMVVideoCodec.Items.Count > 0) { cbWMVVideoCodec.SelectedIndex = 0; } if (cbWMVAudioCodec.Items.Count > 0) { cbWMVAudioCodec.SelectedIndex = 0; } cbWMVAudioCodec_SelectedIndexChanged(null, null); if (cbWMVAudioFormat.Items.Count > 0) { cbWMVAudioFormat.SelectedIndex = 0; } if (_coreVideoCapture != null) { foreach (string profile in _coreVideoCapture.WMV_Internal_Profiles()) { cbWMVInternalProfile9.Items.Add(profile); } } else { foreach (string profile in _coreVideoEdit.WMV_Internal_Profiles()) { cbWMVInternalProfile9.Items.Add(profile); } } if (cbWMVInternalProfile9.Items.Count > 7) { cbWMVInternalProfile9.SelectedIndex = 7; } List <string> names; if (_coreVideoCapture != null) { _coreVideoCapture.WMV_V8_Profiles(out names, out _); } else { _coreVideoEdit.WMV_V8_Profiles(out names, out _); } foreach (string name in names) { cbWMVInternalProfile8.Items.Add(name); } if (cbWMVInternalProfile8.Items.Count > 0) { cbWMVInternalProfile8.SelectedIndex = 0; } cbWMVTVFormat.SelectedIndex = 0; }