SelectItem() public method

public SelectItem ( int index ) : void
index int
return void
        public CameraAndScreenControlWindow(Cursor cursor)
            : base(cursor)
        {

            ScaleX = 16.5f;
            ScaleY = 4.3f;
            X = ScaleX;
            Y = ScaleY + MoveBarHeight;
            HasMoveBar = true;

            #region Create the CameraConfiguration ComboBox

            _comboBox = new ComboBox(cursor);
            
            AddWindow(_comboBox);
            _comboBox.Y = 2;
            _comboBox.ScaleX = 16;
            Array values = Enum.GetValues(typeof(CameraPropertyGrid.CameraConfiguration));

            _comboBox.ItemClick += ComboBoxItemClick;


            foreach (object value in values)
            {
                _comboBox.AddItem(value.ToString(), value);
            }
            #endregion

            #region Create the Flickering ComboBox

            _flickeringComboBox = new ComboBox(cursor);

            AddWindow(_flickeringComboBox);
            _flickeringComboBox.Y = 4.5f;
            _flickeringComboBox.ScaleX = 16;
            _flickeringComboBox.ItemClick += FlickeringItemClick;

            _flickeringComboBox.AddItem("Flickering On", true);
            _flickeringComboBox.AddItem("Flickering Off", false);

            _flickeringComboBox.SelectItem(0);

            #endregion

            #region Create the Show Camera Property Grid button

            _cameraPropertiesButton = new Button(cursor);
            AddWindow(_cameraPropertiesButton);
            _cameraPropertiesButton.ScaleX = 8.5f;
            _cameraPropertiesButton.Text = "Camera Properties";
            _cameraPropertiesButton.X = _cameraPropertiesButton.ScaleX + .5f;
            _cameraPropertiesButton.Y = 7f;
            _cameraPropertiesButton.Click += ShowCameraProperties;
            #endregion

            #region Create the To Origin button

            _toOriginButton = new Button(cursor);
            AddWindow(_toOriginButton);
            _toOriginButton.ScaleX = 5f;
            _toOriginButton.Text = "To Origin";
            _toOriginButton.X = _toOriginButton.ScaleX + 2*_cameraPropertiesButton.ScaleX + 1;
            _toOriginButton.Y = 7f;
            _toOriginButton.Click += ToOriginClick;

            #endregion

            PropertyGrid.SetPropertyGridTypeAssociation(typeof(Camera), typeof(CameraPropertyGridReduced));

        }