internal void FocusItem(Size size, short bpp)
{
if (Enabled) {
int x = m_distinctResolutions.IndexOf(size);
if (x > -1) {
webCamResolution.Value = x;
webCamResolution_Scroll(null, null);
x = m_bitDepths.IndexOf(new VisualBitDepth(bpp));
if (x > -1) {
webCamBitDepth.SelectedIndex = x;
}
}
}
}