CamTimer.Controls.WebcamConfigurationPicker.FocusItem C# (CSharp) Method

FocusItem() private method

private FocusItem ( Size size, short bpp ) : void
size System.Drawing.Size
bpp short
return void
        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;
                    }
                }
            }
        }