private void btnAudioSettings_Click(object sender, EventArgs e)
{
if (audioDevicesForm.ShowDialog() == DialogResult.OK)
{
myComboBoxItem objInDevice = (myComboBoxItem) audioDevicesForm.cbAudioInDevices.SelectedItem;
myComboBoxItem objOutDevice = (myComboBoxItem) audioDevicesForm.cbAudioOutDevices.SelectedItem;
ics.ReconfigureAudioSystem(iConfServer.NET.iConfServerDotNet.audioType.DirectSound,
Convert.ToInt32(objInDevice.ItemData), Convert.ToInt32(objOutDevice.ItemData));
}
}