private void InitializeComponent()
        {
            _cmbChoices = new ComboBox();
            _cmbSchemas = new UnsettableComboBox();

            _btnEditChoices = new Button();
            _btnClose       = new Button();

            _lblChoices.Location = new System.Drawing.Point(0, 0);
            _lblChoices.Size     = new System.Drawing.Size(276, 16);
            _lblChoices.TabStop  = false;

            _cmbChoices.Location              = new System.Drawing.Point(0, 16);
            _cmbChoices.Size                  = new System.Drawing.Size(195, 21);
            _cmbChoices.TabStop               = true;
            _cmbChoices.Enabled               = false;
            _cmbChoices.Sorted                = true;
            _cmbChoices.DropDownStyle         = ComboBoxStyle.DropDownList;
            _cmbChoices.SelectedIndexChanged += new EventHandler(this.OnSelectedIndexChangedChoicesComboBox);

            _btnEditChoices.Location = new System.Drawing.Point(201, 15);
            _btnEditChoices.Size     = new System.Drawing.Size(75, 23);
            _btnEditChoices.TabStop  = true;
            _btnEditChoices.Click   += new EventHandler(this.OnClickEditChoicesButton);

            _lblSchemas.Location = new System.Drawing.Point(0, 48);
            _lblSchemas.Size     = new System.Drawing.Size(276, 16);
            _lblSchemas.TabStop  = false;

            _cmbSchemas.Location      = new System.Drawing.Point(0, 64);
            _cmbSchemas.Size          = new System.Drawing.Size(276, 21);
            _cmbSchemas.TabStop       = true;
            _cmbSchemas.Sorted        = true;
            _cmbSchemas.DropDownStyle = ComboBoxStyle.DropDown;
            _cmbSchemas.LostFocus    += new EventHandler(this.OnLostFocusSchemasComboBox);

            _btnClose.Location = new System.Drawing.Point(201, 104);
            _btnClose.Size     = new System.Drawing.Size(75, 23);
            _btnClose.TabStop  = true;
            _btnClose.Click   += new EventHandler(this.OnClickCloseButton);

            this._pnlMain.Controls.AddRange(new System.Windows.Forms.Control[] {
                this._btnClose,
                this._cmbSchemas,
                this._lblSchemas,
                this._btnEditChoices,
                this._lblChoices,
                this._cmbChoices
            });
            this._pnlMain.Location = new System.Drawing.Point(6, 5);
            this._pnlMain.Size     = new System.Drawing.Size(276, 128);
            this._pnlMain.TabIndex = 0;
            this._pnlMain.Anchor   = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);

            this.ClientSize   = new Size(285, 139);
            this.AcceptButton = _btnClose;
            this.CancelButton = _btnClose;
            this.Controls.Add(_pnlMain);
        }
        private void InitializeComponent()
        {
            _cmbChoices = new ComboBox();
            _cmbSchemas = new UnsettableComboBox();

            _btnEditChoices = new Button();
            _btnClose = new Button();
            
            _lblChoices.Location = new System.Drawing.Point(0, 0);
            _lblChoices.Size = new System.Drawing.Size(276, 16);
            _lblChoices.TabStop = false;

            _cmbChoices.Location = new System.Drawing.Point(0, 16);
            _cmbChoices.Size = new System.Drawing.Size(195, 21);
            _cmbChoices.TabStop = true;
            _cmbChoices.Enabled = false;
            _cmbChoices.Sorted = true;
            _cmbChoices.DropDownStyle = ComboBoxStyle.DropDownList;
            _cmbChoices.SelectedIndexChanged += new EventHandler(this.OnSelectedIndexChangedChoicesComboBox);

            _btnEditChoices.Location = new System.Drawing.Point(201, 15);
            _btnEditChoices.Size = new System.Drawing.Size(75, 23);
            _btnEditChoices.TabStop = true;
            _btnEditChoices.Click += new EventHandler(this.OnClickEditChoicesButton);

            _lblSchemas.Location = new System.Drawing.Point(0, 48);
            _lblSchemas.Size = new System.Drawing.Size(276, 16);
            _lblSchemas.TabStop = false;

            _cmbSchemas.Location = new System.Drawing.Point(0, 64);
            _cmbSchemas.Size = new System.Drawing.Size(276, 21);
            _cmbSchemas.TabStop = true;
            _cmbSchemas.Sorted = true;
            _cmbSchemas.DropDownStyle = ComboBoxStyle.DropDown;
            _cmbSchemas.LostFocus += new EventHandler(this.OnLostFocusSchemasComboBox);

            _btnClose.Location = new System.Drawing.Point(201, 104);
            _btnClose.Size = new System.Drawing.Size(75, 23);
            _btnClose.TabStop = true;
            _btnClose.Click += new EventHandler(this.OnClickCloseButton);

            this._pnlMain.Controls.AddRange(new System.Windows.Forms.Control[] {
                this._btnClose,
                this._cmbSchemas,
                this._lblSchemas,
                this._btnEditChoices,
                this._lblChoices,
                this._cmbChoices
            });
            this._pnlMain.Location = new System.Drawing.Point(6, 5);
            this._pnlMain.Size = new System.Drawing.Size(276, 128);
            this._pnlMain.TabIndex = 0;
            this._pnlMain.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);

            this.ClientSize = new Size(285, 139);
            this.AcceptButton = _btnClose;
            this.CancelButton = _btnClose;
            this.Controls.Add(_pnlMain);
        }
        protected override void InitForm()
        {
            base.InitForm();

            this._objectList = (ObjectList)Component;

            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "Fields.ico"
            );
            this.Size = new Size(402, 300);
            this.Text = SR.GetString(SR.ObjectListFieldsPage_Title);
            
            _ckbAutoGenerateFields = new CheckBox();
            _cmbDataField          = new UnsettableComboBox();
            _ckbVisible            = new CheckBox();
            _txtDataFormatString   = new TextBox();
            _txtTitle              = new TextBox();

            _ckbAutoGenerateFields.SetBounds(4, 4, 396, LabelHeight);
            _ckbAutoGenerateFields.Text = SR.GetString(SR.ObjectListFieldsPage_AutoGenerateFieldsCaption);
            _ckbAutoGenerateFields.FlatStyle = FlatStyle.System;
            _ckbAutoGenerateFields.CheckedChanged += new EventHandler(this.OnSetPageDirty);
            _ckbAutoGenerateFields.TabIndex = 0;

            GroupLabel grplblFieldList = new GroupLabel();
            grplblFieldList.SetBounds(4, 32, 392, LabelHeight);
            grplblFieldList.Text = SR.GetString(SR.ObjectListFieldsPage_FieldListGroupLabel);
            grplblFieldList.TabIndex = 1;
            grplblFieldList.TabStop = false;

            TreeList.TabIndex = 2;

            Label lblDataField = new Label();
            lblDataField.SetBounds(X, Y, ControlWidth, LabelHeight);
            lblDataField.Text = SR.GetString(SR.ObjectListFieldsPage_DataFieldCaption);
            lblDataField.TabStop = false;
            lblDataField.TabIndex = Index;

            Y += LabelHeight;
            _cmbDataField.SetBounds(X, Y, ControlWidth, CmbHeight);
            _cmbDataField.DropDownStyle = ComboBoxStyle.DropDown;
            _cmbDataField.Sorted        = true;
            _cmbDataField.NotSetText    = SR.GetString(SR.ObjectListFieldsPage_NoneComboEntry);
            _cmbDataField.TextChanged   += new EventHandler(this.OnPropertyChanged);
            _cmbDataField.SelectedIndexChanged += new EventHandler(this.OnPropertyChanged);
            _cmbDataField.TabIndex = Index + 1;

            Y += CellSpace;
            Label lblDataFormatString = new Label();
            lblDataFormatString.SetBounds(X, Y, ControlWidth, LabelHeight);
            lblDataFormatString.Text = SR.GetString(SR.ObjectListFieldsPage_DataFormatStringCaption);
            lblDataFormatString.TabStop = false;
            lblDataFormatString.TabIndex = Index + 2;

            Y += LabelHeight;
            _txtDataFormatString.SetBounds(X, Y, ControlWidth, CmbHeight);
            _txtDataFormatString.TextChanged += new EventHandler(this.OnPropertyChanged);
            _txtDataFormatString.TabIndex = Index + 3;

            Y += CellSpace;
            Label lblTitle = new Label();
            lblTitle.SetBounds(X, Y, ControlWidth, LabelHeight);
            lblTitle.Text = SR.GetString(SR.ObjectListFieldsPage_TitleCaption);
            lblTitle.TabStop = false;
            lblTitle.TabIndex = Index + 4;

            Y += LabelHeight;
            _txtTitle.SetBounds(X, Y, ControlWidth, CmbHeight);
            _txtTitle.TextChanged += new EventHandler(this.OnPropertyChanged);
            _txtTitle.TabIndex = Index + 5;

            Y += CellSpace;
            _ckbVisible.SetBounds(X, Y, ControlWidth, CmbHeight);
            _ckbVisible.FlatStyle = System.Windows.Forms.FlatStyle.System;
            _ckbVisible.Text = SR.GetString(SR.ObjectListFieldsPage_VisibleCaption); 
            _ckbVisible.CheckedChanged += new EventHandler(this.OnPropertyChanged);
            _ckbVisible.TabIndex = Index + 6;

            this.Controls.AddRange(new Control[] {
                                                     _ckbAutoGenerateFields,
                                                     grplblFieldList,
                                                     lblDataField,
                                                     _cmbDataField,
                                                     lblDataFormatString,
                                                     _txtDataFormatString,
                                                     lblTitle,
                                                     _txtTitle,
                                                     _ckbVisible
                                                 });
        }