private void InitForm()
        {
            GroupLabel label = new GroupLabel();

            this.showHeaderCheck = new System.Windows.Forms.CheckBox();
            this.showFooterCheck = new System.Windows.Forms.CheckBox();
            GroupLabel label2 = new GroupLabel();

            this.allowSortingCheck = new System.Windows.Forms.CheckBox();
            label.SetBounds(4, 4, 0x1af, 0x10);
            label.Text     = System.Design.SR.GetString("DGGen_HeaderFooterGroup");
            label.TabIndex = 8;
            label.TabStop  = false;
            this.showHeaderCheck.SetBounds(12, 0x18, 160, 0x10);
            this.showHeaderCheck.TabIndex        = 9;
            this.showHeaderCheck.Text            = System.Design.SR.GetString("DGGen_ShowHeader");
            this.showHeaderCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.showHeaderCheck.FlatStyle       = FlatStyle.System;
            this.showHeaderCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowHeader);
            this.showFooterCheck.SetBounds(12, 0x2c, 160, 0x10);
            this.showFooterCheck.TabIndex        = 10;
            this.showFooterCheck.Text            = System.Design.SR.GetString("DGGen_ShowFooter");
            this.showFooterCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.showFooterCheck.FlatStyle       = FlatStyle.System;
            this.showFooterCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowFooter);
            label2.SetBounds(4, 70, 0x1af, 0x10);
            label2.Text     = System.Design.SR.GetString("DGGen_BehaviorGroup");
            label2.TabIndex = 11;
            label2.TabStop  = false;
            this.allowSortingCheck.SetBounds(12, 0x58, 160, 0x10);
            this.allowSortingCheck.Text            = System.Design.SR.GetString("DGGen_AllowSorting");
            this.allowSortingCheck.TabIndex        = 12;
            this.allowSortingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.allowSortingCheck.FlatStyle       = FlatStyle.System;
            this.allowSortingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowSorting);
            this.Text = System.Design.SR.GetString("DGGen_Text");
            base.AccessibleDescription = System.Design.SR.GetString("DGGen_Desc");
            base.Size = new Size(0x1d0, 0x110);
            base.CommitOnDeactivate = true;
            base.Icon = new Icon(base.GetType(), "DataGridGeneralPage.ico");
            base.Controls.Clear();
            base.Controls.AddRange(new Control[] { this.allowSortingCheck, label2, this.showFooterCheck, this.showHeaderCheck, label });
        }
Exemplo n.º 2
0
        /// <include file='doc\BordersPage.uex' path='docs/doc[@for="BordersPage.InitForm"]/*' />
        /// <devdoc>
        ///    Creates the UI of the page.
        /// </devdoc>
        private void InitForm()
        {
            GroupLabel cellMarginGroup  = new GroupLabel();
            Label      cellPaddingLabel = new Label();

            this.cellPaddingEdit = new NumberEdit();
            Label cellSpacingLabel = new Label();

            this.cellSpacingEdit = new NumberEdit();
            GroupLabel borderLinesGroup = new GroupLabel();
            Label      gridLinesLabel   = new Label();

            this.gridLinesCombo = new ComboBox();
            Label colorLabel = new Label();

            this.borderColorCombo        = new ColorComboBox();
            this.borderColorPickerButton = new Button();
            Label borderWidthLabel = new Label();

            this.borderWidthUnit = new UnitControl();

            cellMarginGroup.SetBounds(4, 4, 300, 16);
            cellMarginGroup.Text     = SR.GetString(SR.BDLBor_CellMarginsGroup);
            cellMarginGroup.TabStop  = false;
            cellMarginGroup.TabIndex = 0;

            cellPaddingLabel.Text = SR.GetString(SR.BDLBor_CellPadding);
            cellPaddingLabel.SetBounds(12, 24, 120, 14);
            cellPaddingLabel.TabStop  = false;
            cellPaddingLabel.TabIndex = 1;

            cellPaddingEdit.SetBounds(12, 40, 70, 20);
            cellPaddingEdit.AllowDecimal  = false;
            cellPaddingEdit.AllowNegative = false;
            cellPaddingEdit.TabIndex      = 2;
            cellPaddingEdit.TextChanged  += new EventHandler(this.OnBordersChanged);

            cellSpacingLabel.Text = SR.GetString(SR.BDLBor_CellSpacing);
            cellSpacingLabel.SetBounds(160, 24, 120, 14);
            cellSpacingLabel.TabStop  = false;
            cellSpacingLabel.TabIndex = 3;

            cellSpacingEdit.SetBounds(160, 40, 70, 20);
            cellSpacingEdit.AllowDecimal  = false;
            cellSpacingEdit.AllowNegative = false;
            cellSpacingEdit.TabIndex      = 4;
            cellSpacingEdit.TextChanged  += new EventHandler(this.OnBordersChanged);

            borderLinesGroup.SetBounds(4, 70, 300, 16);
            borderLinesGroup.Text     = SR.GetString(SR.BDLBor_BorderLinesGroup);
            borderLinesGroup.TabStop  = false;
            borderLinesGroup.TabIndex = 5;

            gridLinesLabel.Text = SR.GetString(SR.BDLBor_GridLines);
            gridLinesLabel.SetBounds(12, 90, 150, 14);
            gridLinesLabel.TabStop  = false;
            gridLinesLabel.TabIndex = 6;

            gridLinesCombo.SetBounds(12, 106, 140, 21);
            gridLinesCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            gridLinesCombo.Items.Clear();
            gridLinesCombo.Items.AddRange(new object[] {
                SR.GetString(SR.BDLBor_GL_Horz),
                SR.GetString(SR.BDLBor_GL_Vert),
                SR.GetString(SR.BDLBor_GL_Both),
                SR.GetString(SR.BDLBor_GL_None)
            });
            gridLinesCombo.TabIndex              = 7;
            gridLinesCombo.SelectedIndexChanged += new EventHandler(this.OnBordersChanged);

            colorLabel.Text = SR.GetString(SR.BDLBor_BorderColor);
            colorLabel.SetBounds(12, 134, 150, 14);
            colorLabel.TabStop  = false;
            colorLabel.TabIndex = 8;

            borderColorCombo.SetBounds(12, 150, 140, 21);
            borderColorCombo.TabIndex              = 9;
            borderColorCombo.TextChanged          += new EventHandler(this.OnBordersChanged);
            borderColorCombo.SelectedIndexChanged += new EventHandler(this.OnBordersChanged);

            borderColorPickerButton.SetBounds(156, 149, 24, 22);
            borderColorPickerButton.Text      = "...";
            borderColorPickerButton.TabIndex  = 10;
            borderColorPickerButton.FlatStyle = FlatStyle.System;
            borderColorPickerButton.Click    += new EventHandler(this.OnClickColorPicker);

            borderWidthLabel.Text = SR.GetString(SR.BDLBor_BorderWidth);
            borderWidthLabel.SetBounds(12, 178, 150, 14);
            borderWidthLabel.TabStop  = false;
            borderWidthLabel.TabIndex = 11;

            borderWidthUnit.SetBounds(12, 194, 102, 22);
            borderWidthUnit.AllowNegativeValues = false;
            borderWidthUnit.AllowPercentValues  = false;
            borderWidthUnit.DefaultUnit         = UnitControl.UNIT_PX;
            borderWidthUnit.TabIndex            = 12;
            borderWidthUnit.Changed            += new EventHandler(OnBordersChanged);

            this.Text = SR.GetString(SR.BDLBor_Text);
            this.Size = new Size(308, 156);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(this.GetType(), "BordersPage.ico");

            this.Controls.Clear();
            this.Controls.AddRange(new Control[] {
                borderWidthUnit,
                borderWidthLabel,
                borderColorPickerButton,
                borderColorCombo,
                colorLabel,
                gridLinesCombo,
                gridLinesLabel,
                borderLinesGroup,
                cellSpacingEdit,
                cellSpacingLabel,
                cellPaddingEdit,
                cellPaddingLabel,
                cellMarginGroup
            });
        }
        /// <include file='doc\DataGridGeneralPage.uex' path='docs/doc[@for="DataGridGeneralPage.InitForm"]/*' />
        /// <devdoc>
        ///   Initializes the UI of the form.
        /// </devdoc>
        private void InitForm()
        {
            GroupLabel dataGroup       = new GroupLabel();
            Label      dataSourceLabel = new Label();

            this.dataSourceCombo = new UnsettableComboBox();
            Label dataMemberLabel = new Label();

            this.dataMemberCombo = new UnsettableComboBox();
            Label dataKeyFieldLabel = new Label();

            this.dataKeyFieldCombo = new UnsettableComboBox();
            this.columnInfoLabel   = new Label();
            GroupLabel headerFooterGroup = new GroupLabel();

            this.showHeaderCheck = new CheckBox();
            this.showFooterCheck = new CheckBox();
            GroupLabel behaviorGroup = new GroupLabel();

            this.allowSortingCheck = new CheckBox();

            dataGroup.SetBounds(4, 4, 431, 16);
            dataGroup.Text     = SR.GetString(SR.DGGen_DataGroup);
            dataGroup.TabIndex = 0;
            dataGroup.TabStop  = false;

            dataSourceLabel.SetBounds(12, 24, 170, 16);
            dataSourceLabel.Text     = SR.GetString(SR.DGGen_DataSource);
            dataSourceLabel.TabStop  = false;
            dataSourceLabel.TabIndex = 1;

            dataSourceCombo.SetBounds(12, 40, 140, 64);
            dataSourceCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataSourceCombo.Sorted                = true;
            dataSourceCombo.TabIndex              = 2;
            dataSourceCombo.NotSetText            = SR.GetString(SR.DGGen_DSUnbound);
            dataSourceCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataSource);

            dataMemberLabel.SetBounds(184, 24, 170, 16);
            dataMemberLabel.Text     = SR.GetString(SR.DGGen_DataMember);
            dataMemberLabel.TabStop  = false;
            dataMemberLabel.TabIndex = 3;

            dataMemberCombo.SetBounds(184, 40, 140, 21);
            dataMemberCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataMemberCombo.Sorted                = true;
            dataMemberCombo.TabIndex              = 4;
            dataMemberCombo.NotSetText            = SR.GetString(SR.DGGen_DMNone);
            dataMemberCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataMember);

            dataKeyFieldLabel.SetBounds(12, 66, 170, 16);
            dataKeyFieldLabel.Text     = SR.GetString(SR.DGGen_DataKey);
            dataKeyFieldLabel.TabStop  = false;
            dataKeyFieldLabel.TabIndex = 5;

            dataKeyFieldCombo.SetBounds(12, 82, 140, 64);
            dataKeyFieldCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataKeyFieldCombo.Sorted                = true;
            dataKeyFieldCombo.TabIndex              = 6;
            dataKeyFieldCombo.NotSetText            = SR.GetString(SR.DGGen_DKNone);
            dataKeyFieldCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataKeyField);

            columnInfoLabel.SetBounds(8, 112, 420, 48);
            columnInfoLabel.TabStop  = false;
            columnInfoLabel.TabIndex = 7;

            headerFooterGroup.SetBounds(4, 162, 431, 16);
            headerFooterGroup.Text     = SR.GetString(SR.DGGen_HeaderFooterGroup);
            headerFooterGroup.TabIndex = 8;
            headerFooterGroup.TabStop  = false;

            showHeaderCheck.SetBounds(12, 182, 160, 16);
            showHeaderCheck.TabIndex        = 9;
            showHeaderCheck.Text            = SR.GetString(SR.DGGen_ShowHeader);
            showHeaderCheck.TextAlign       = ContentAlignment.MiddleLeft;
            showHeaderCheck.FlatStyle       = FlatStyle.System;
            showHeaderCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowHeader);

            showFooterCheck.SetBounds(12, 202, 160, 16);
            showFooterCheck.TabIndex        = 10;
            showFooterCheck.Text            = SR.GetString(SR.DGGen_ShowFooter);
            showFooterCheck.TextAlign       = ContentAlignment.MiddleLeft;
            showFooterCheck.FlatStyle       = FlatStyle.System;
            showFooterCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowFooter);

            behaviorGroup.SetBounds(4, 228, 431, 16);
            behaviorGroup.Text     = SR.GetString(SR.DGGen_BehaviorGroup);
            behaviorGroup.TabIndex = 11;
            behaviorGroup.TabStop  = false;

            allowSortingCheck.SetBounds(12, 246, 160, 16);
            allowSortingCheck.Text            = SR.GetString(SR.DGGen_AllowSorting);
            allowSortingCheck.TabIndex        = 12;
            allowSortingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            allowSortingCheck.FlatStyle       = FlatStyle.System;
            allowSortingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowSorting);

            this.Text = SR.GetString(SR.DGGen_Text);
            this.Size = new Size(464, 272);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(this.GetType(), "DataGridGeneralPage.ico");

            Controls.Clear();
            Controls.AddRange(new Control[] {
                allowSortingCheck,
                behaviorGroup,
                showFooterCheck,
                showHeaderCheck,
                headerFooterGroup,
                columnInfoLabel,
                dataKeyFieldCombo,
                dataKeyFieldLabel,
                dataMemberCombo,
                dataMemberLabel,
                dataSourceCombo,
                dataSourceLabel,
                dataGroup
            });
        }
        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
            });
        }
Exemplo n.º 5
0
        private void InitializeComponent()
        {
            _btnOK     = new Button();
            _btnCancel = new Button();
            _btnHelp   = new Button();
            _btnUp     = new Button();
            _btnDown   = new Button();
            _btnAdd    = new Button();
            _btnRemove = new Button();

            _txtType           = new TextBox();
            _tvDefinedStyles   = new TreeView();
            _lvAvailableStyles = new ListView();
            _samplePreview     = new MSHTMLHost();
            _propertyBrowser   = new PropertyGrid();
            _cntxtMenuItem     = new MenuItem();
            _cntxtMenu         = new ContextMenu();

            GroupLabel grplblStyleList = new GroupLabel();

            grplblStyleList.SetBounds(6, 5, 432, 16);
            grplblStyleList.Text     = SR.GetString(SR.StylesEditorDialog_StyleListGroupLabel);
            grplblStyleList.TabStop  = false;
            grplblStyleList.TabIndex = 0;

            Label lblAvailableStyles = new Label();

            lblAvailableStyles.SetBounds(14, 25, 180, 16);
            lblAvailableStyles.Text     = SR.GetString(SR.StylesEditorDialog_AvailableStylesCaption);
            lblAvailableStyles.TabStop  = false;
            lblAvailableStyles.TabIndex = 1;

            ColumnHeader chStyleType      = new System.Windows.Forms.ColumnHeader();
            ColumnHeader chStyleNamespace = new System.Windows.Forms.ColumnHeader();

            chStyleType.Width          = 16;
            chStyleType.TextAlign      = System.Windows.Forms.HorizontalAlignment.Left;
            chStyleNamespace.Width     = 16;
            chStyleNamespace.TextAlign = System.Windows.Forms.HorizontalAlignment.Left;

            _lvAvailableStyles.SetBounds(14, 41, 180, 95);
            _lvAvailableStyles.HeaderStyle   = System.Windows.Forms.ColumnHeaderStyle.None;
            _lvAvailableStyles.MultiSelect   = false;
            _lvAvailableStyles.HideSelection = false;
            _lvAvailableStyles.FullRowSelect = true;
            _lvAvailableStyles.View          = System.Windows.Forms.View.Details;
            _lvAvailableStyles.Columns.AddRange(new System.Windows.Forms.ColumnHeader[2] {
                chStyleType, chStyleNamespace
            });
            _lvAvailableStyles.SelectedIndexChanged += new EventHandler(this.OnNewStyleTypeChanged);
            _lvAvailableStyles.DoubleClick          += new EventHandler(this.OnDoubleClick);
            _lvAvailableStyles.Sorting  = SortOrder.Ascending;
            _lvAvailableStyles.TabIndex = 2;
            _lvAvailableStyles.TabStop  = true;

            _btnAdd.SetBounds(198, 77, 32, 25);
            _btnAdd.Text     = SR.GetString(SR.StylesEditorDialog_AddBtnCation);
            _btnAdd.Click   += new EventHandler(this.OnClickAddButton);
            _btnAdd.TabIndex = 3;
            _btnAdd.TabStop  = true;

            Label lblDefinedStyles = new Label();

            lblDefinedStyles.SetBounds(234, 25, 166, 16);
            lblDefinedStyles.Text     = SR.GetString(SR.StylesEditorDialog_DefinedStylesCaption);
            lblDefinedStyles.TabStop  = false;
            lblDefinedStyles.TabIndex = 4;;

            _tvDefinedStyles.SetBounds(234, 41, 166, 95);
            _tvDefinedStyles.AfterSelect    += new TreeViewEventHandler(OnStylesSelected);
            _tvDefinedStyles.AfterLabelEdit += new NodeLabelEditEventHandler(OnAfterLabelEdit);
            _tvDefinedStyles.LabelEdit       = true;
            _tvDefinedStyles.ShowPlusMinus   = false;
            _tvDefinedStyles.HideSelection   = false;
            _tvDefinedStyles.Indent          = 15;
            _tvDefinedStyles.ShowRootLines   = false;
            _tvDefinedStyles.ShowLines       = false;
            _tvDefinedStyles.ContextMenu     = _cntxtMenu;
            _tvDefinedStyles.TabIndex        = 5;
            _tvDefinedStyles.TabStop         = true;
            _tvDefinedStyles.KeyDown        += new KeyEventHandler(OnKeyDown);
            _tvDefinedStyles.MouseUp        += new MouseEventHandler(OnListMouseUp);
            _tvDefinedStyles.MouseDown      += new MouseEventHandler(OnListMouseDown);

            _btnUp.SetBounds(404, 41, 28, 27);
            _btnUp.Click   += new EventHandler(this.OnClickUpButton);
            _btnUp.Image    = GenericUI.SortUpIcon;
            _btnUp.TabIndex = 6;
            _btnUp.TabStop  = true;

            _btnDown.SetBounds(404, 72, 28, 27);
            _btnDown.Click   += new EventHandler(this.OnClickDownButton);
            _btnDown.Image    = GenericUI.SortDownIcon;
            _btnDown.TabIndex = 7;
            _btnDown.TabStop  = true;

            _btnRemove.SetBounds(404, 109, 28, 27);
            _btnRemove.Click   += new EventHandler(this.OnClickRemoveButton);
            _btnRemove.Image    = GenericUI.DeleteIcon;
            _btnRemove.TabIndex = 8;
            _btnRemove.TabStop  = true;

            GroupLabel grplblStyleProperties = new GroupLabel();

            grplblStyleProperties.SetBounds(6, 145, 432, 16);
            grplblStyleProperties.Text     = SR.GetString(SR.StylesEditorDialog_StylePropertiesGroupLabel);
            grplblStyleProperties.TabStop  = false;
            grplblStyleProperties.TabIndex = 9;

            Label lblType = new Label();

            lblType.SetBounds(14, 165, 180, 16);
            lblType.Text     = SR.GetString(SR.StylesEditorDialog_TypeCaption);
            lblType.TabIndex = 10;
            lblType.TabStop  = false;

            _txtType.SetBounds(14, 181, 180, 16);
            _txtType.ReadOnly = true;
            _txtType.TabIndex = 11;
            _txtType.TabStop  = true;

            Label lblSample = new Label();

            lblSample.SetBounds(14, 213, 180, 16);
            lblSample.Text     = SR.GetString(SR.StylesEditorDialog_SampleCaption);
            lblSample.TabStop  = false;
            lblSample.TabIndex = 12;

            _samplePreview.SetBounds(14, 229, 180, 76);
            _samplePreview.TabStop  = false;
            _samplePreview.TabIndex = 13;

            Label lblProperties = new Label();

            lblProperties.SetBounds(234, 165, 198, 16);
            lblProperties.Text     = SR.GetString(SR.StylesEditorDialog_PropertiesCaption);
            lblProperties.TabIndex = 14;
            lblProperties.TabStop  = false;

            _propertyBrowser.SetBounds(234, 181, 198, 178);
            _propertyBrowser.Anchor                = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;
            _propertyBrowser.ToolbarVisible        = false;
            _propertyBrowser.HelpVisible           = false;
            _propertyBrowser.TabIndex              = 15;
            _propertyBrowser.TabStop               = true;
            _propertyBrowser.PropertySort          = PropertySort.Alphabetical;
            _propertyBrowser.PropertyValueChanged += new PropertyValueChangedEventHandler(this.OnPropertyValueChanged);

            _btnOK.DialogResult = DialogResult.OK;
            _btnOK.Location     = new System.Drawing.Point(201, 370);
            _btnOK.Size         = new System.Drawing.Size(75, 23);
            _btnOK.TabIndex     = 16;
            _btnOK.Text         = SR.GetString(SR.GenericDialog_OKBtnCaption);
            _btnOK.Click       += new EventHandler(this.OnClickOKButton);

            _btnCancel.DialogResult = DialogResult.Cancel;
            _btnCancel.Location     = new System.Drawing.Point(282, 370);
            _btnCancel.Size         = new System.Drawing.Size(75, 23);
            _btnCancel.TabIndex     = 17;
            _btnCancel.Text         = SR.GetString(SR.GenericDialog_CancelBtnCaption);

            _btnHelp.Click   += new EventHandler(this.OnClickHelpButton);
            _btnHelp.Location = new System.Drawing.Point(363, 370);
            _btnHelp.Size     = new System.Drawing.Size(75, 23);
            _btnHelp.TabIndex = 18;
            _btnHelp.Text     = SR.GetString(SR.GenericDialog_HelpBtnCaption);

            _cntxtMenuItem.Text = SR.GetString(SR.EditableTreeList_Rename);
            _cntxtMenu.MenuItems.Add(_cntxtMenuItem);
            _cntxtMenu.Popup     += new EventHandler(OnPopup);
            _cntxtMenuItem.Click += new EventHandler(OnContextMenuItemClick);

            GenericUI.InitDialog(this, _styleSheet.Site);

            this.Text           = _styleSheet.ID + " - " + SR.GetString(SR.StylesEditorDialog_Title);
            this.ClientSize     = new Size(444, 401);
            this.AcceptButton   = _btnOK;
            this.CancelButton   = _btnCancel;
            this.Activated     += new System.EventHandler(StylesEditorDialog_Activated);
            this.HelpRequested += new HelpEventHandler(this.OnHelpRequested);
            this.Controls.AddRange(new Control[]
            {
                grplblStyleList,
                lblAvailableStyles,
                _lvAvailableStyles,
                _btnAdd,
                lblDefinedStyles,
                _tvDefinedStyles,
                _btnUp,
                _btnDown,
                _btnRemove,
                grplblStyleProperties,
                lblType,
                _txtType,
                lblSample,
                _samplePreview,
                lblProperties,
                _propertyBrowser,
                _btnOK,
                _btnCancel,
                _btnHelp
            });
        }
Exemplo n.º 6
0
        /// <include file='doc\DataListGeneralPage.uex' path='docs/doc[@for="DataListGeneralPage.InitForm"]/*' />
        /// <devdoc>
        ///   Initializes the UI of the form.
        /// </devdoc>
        private void InitForm()
        {
            GroupLabel dataGroup       = new GroupLabel();
            Label      dataSourceLabel = new Label();

            this.dataSourceCombo = new UnsettableComboBox();
            Label dataMemberLabel = new Label();

            this.dataMemberCombo = new UnsettableComboBox();
            Label dataKeyFieldLabel = new Label();

            this.dataKeyFieldCombo = new UnsettableComboBox();
            GroupLabel headerFooterGroup = new GroupLabel();

            this.showHeaderCheck = new CheckBox();
            this.showFooterCheck = new CheckBox();
            GroupLabel repeatGroup        = new GroupLabel();
            Label      repeatColumnsLabel = new Label();

            this.repeatColumnsEdit = new NumberEdit();
            Label repeatDirectionLabel = new Label();

            this.repeatDirectionCombo = new ComboBox();
            Label repeatLayoutLabel = new Label();

            this.repeatLayoutCombo = new ComboBox();
            GroupLabel templatesGroup = new GroupLabel();

            this.extractRowsCheck = new CheckBox();

            dataGroup.SetBounds(4, 4, 360, 16);
            dataGroup.Text     = SR.GetString(SR.DLGen_DataGroup);
            dataGroup.TabIndex = 0;
            dataGroup.TabStop  = false;

            dataSourceLabel.SetBounds(8, 24, 170, 16);
            dataSourceLabel.Text     = SR.GetString(SR.DLGen_DataSource);
            dataSourceLabel.TabStop  = false;
            dataSourceLabel.TabIndex = 1;

            dataSourceCombo.SetBounds(8, 40, 140, 21);
            dataSourceCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataSourceCombo.Sorted                = true;
            dataSourceCombo.TabIndex              = 2;
            dataSourceCombo.NotSetText            = SR.GetString(SR.DLGen_DSUnbound);
            dataSourceCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataSource);

            dataMemberLabel.SetBounds(184, 24, 170, 16);
            dataMemberLabel.Text     = SR.GetString(SR.DLGen_DataMember);
            dataMemberLabel.TabStop  = false;
            dataMemberLabel.TabIndex = 3;

            dataMemberCombo.SetBounds(184, 40, 140, 21);
            dataMemberCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataMemberCombo.Sorted                = true;
            dataMemberCombo.TabIndex              = 4;
            dataMemberCombo.NotSetText            = SR.GetString(SR.DLGen_DMNone);
            dataMemberCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataMember);

            dataKeyFieldLabel.SetBounds(8, 66, 170, 16);
            dataKeyFieldLabel.Text     = SR.GetString(SR.DLGen_DataKey);
            dataKeyFieldLabel.TabStop  = false;
            dataKeyFieldLabel.TabIndex = 4;

            dataKeyFieldCombo.SetBounds(8, 82, 140, 21);
            dataKeyFieldCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
            dataKeyFieldCombo.Sorted                = true;
            dataKeyFieldCombo.TabIndex              = 5;
            dataKeyFieldCombo.NotSetText            = SR.GetString(SR.DLGen_DKNone);
            dataKeyFieldCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataKeyField);

            headerFooterGroup.SetBounds(4, 108, 360, 16);
            headerFooterGroup.Text     = SR.GetString(SR.DLGen_HeaderFooterGroup);
            headerFooterGroup.TabIndex = 6;
            headerFooterGroup.TabStop  = false;

            showHeaderCheck.SetBounds(8, 128, 170, 16);
            showHeaderCheck.TabIndex        = 7;
            showHeaderCheck.Text            = SR.GetString(SR.DLGen_ShowHeader);
            showHeaderCheck.TextAlign       = ContentAlignment.MiddleLeft;
            showHeaderCheck.FlatStyle       = FlatStyle.System;
            showHeaderCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowHeader);

            showFooterCheck.SetBounds(8, 146, 170, 16);
            showFooterCheck.TabIndex        = 8;
            showFooterCheck.Text            = SR.GetString(SR.DLGen_ShowFooter);
            showFooterCheck.TextAlign       = ContentAlignment.MiddleLeft;
            showFooterCheck.FlatStyle       = FlatStyle.System;
            showFooterCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowFooter);

            repeatGroup.SetBounds(4, 172, 360, 16);
            repeatGroup.Text     = SR.GetString(SR.DLGen_RepeatLayoutGroup);
            repeatGroup.TabIndex = 9;
            repeatGroup.TabStop  = false;

            repeatColumnsLabel.SetBounds(8, 192, 106, 16);
            repeatColumnsLabel.Text     = SR.GetString(SR.DLGen_RepeatColumns);
            repeatColumnsLabel.TabStop  = false;
            repeatColumnsLabel.TabIndex = 10;

            repeatColumnsEdit.SetBounds(112, 188, 40, 21);
            repeatColumnsEdit.AllowDecimal  = false;
            repeatColumnsEdit.AllowNegative = false;
            repeatColumnsEdit.TabIndex      = 11;
            repeatColumnsEdit.TextChanged  += new EventHandler(this.OnChangedRepeatProps);

            repeatDirectionLabel.SetBounds(8, 217, 106, 16);
            repeatDirectionLabel.Text     = SR.GetString(SR.DLGen_RepeatDirection);
            repeatDirectionLabel.TabStop  = false;
            repeatDirectionLabel.TabIndex = 12;

            repeatDirectionCombo.SetBounds(112, 213, 140, 56);
            repeatDirectionCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            repeatDirectionCombo.Items.AddRange(new object[] {
                SR.GetString(SR.DLGen_RD_Horz),
                SR.GetString(SR.DLGen_RD_Vert)
            });
            repeatDirectionCombo.TabIndex              = 13;
            repeatDirectionCombo.SelectedIndexChanged += new EventHandler(this.OnChangedRepeatProps);

            repeatLayoutLabel.SetBounds(8, 242, 106, 16);
            repeatLayoutLabel.Text     = SR.GetString(SR.DLGen_RepeatLayout);
            repeatLayoutLabel.TabStop  = false;
            repeatLayoutLabel.TabIndex = 14;

            repeatLayoutCombo.SetBounds(112, 238, 140, 21);
            repeatLayoutCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            repeatLayoutCombo.Items.AddRange(new object[] {
                SR.GetString(SR.DLGen_RL_Table),
                SR.GetString(SR.DLGen_RL_Flow)
            });
            repeatLayoutCombo.TabIndex              = 15;
            repeatLayoutCombo.SelectedIndexChanged += new EventHandler(this.OnChangedRepeatProps);

            templatesGroup.SetBounds(4, 266, 360, 16);
            templatesGroup.Text     = "Templates";
            templatesGroup.TabIndex = 16;
            templatesGroup.TabStop  = false;
            templatesGroup.Visible  = false;

            extractRowsCheck.SetBounds(8, 286, 260, 16);
            extractRowsCheck.Text            = "Extract rows from Tables in template content";
            extractRowsCheck.TabIndex        = 17;
            extractRowsCheck.Visible         = false;
            extractRowsCheck.FlatStyle       = FlatStyle.System;
            extractRowsCheck.CheckedChanged += new EventHandler(this.OnCheckChangedExtractRows);

            this.Text = SR.GetString(SR.DLGen_Text);
            this.Size = new Size(368, 280);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(this.GetType(), "DataListGeneralPage.ico");

            Controls.Clear();
            Controls.AddRange(new Control[] {
                extractRowsCheck,
                templatesGroup,
                repeatLayoutCombo,
                repeatLayoutLabel,
                repeatDirectionCombo,
                repeatDirectionLabel,
                repeatColumnsEdit,
                repeatColumnsLabel,
                repeatGroup,
                showFooterCheck,
                showHeaderCheck,
                headerFooterGroup,
                dataKeyFieldCombo,
                dataKeyFieldLabel,
                dataMemberCombo,
                dataMemberLabel,
                dataSourceCombo,
                dataSourceLabel,
                dataGroup
            });
        }
Exemplo n.º 7
0
        private void InitForm()
        {
            GroupLabel grplblAppearance = new GroupLabel();

            grplblAppearance.SetBounds(4, 4, 392, 16);
            grplblAppearance.Text     = SR.GetString(SR.ObjectListGeneralPage_AppearanceGroupLabel);
            grplblAppearance.TabIndex = 2;
            grplblAppearance.TabStop  = false;

            Label lblBackCommandText = new Label();

            lblBackCommandText.SetBounds(12, 24, 174, 16);
            lblBackCommandText.Text     = SR.GetString(SR.ObjectListGeneralPage_BackCommandTextCaption);
            lblBackCommandText.TabStop  = false;
            lblBackCommandText.TabIndex = 3;

            _txtBackCommandText = new TextBox();
            _txtBackCommandText.SetBounds(12, 40, 154, 20);
            _txtBackCommandText.TabIndex     = 4;
            _txtBackCommandText.TextChanged += new EventHandler(this.OnSetPageDirty);

            Label lblDetailsCommandText = new Label();

            lblDetailsCommandText.SetBounds(206, 24, 174, 16);
            lblDetailsCommandText.Text     = SR.GetString(SR.ObjectListGeneralPage_DetailsCommandTextCaption);
            lblDetailsCommandText.TabStop  = false;
            lblDetailsCommandText.TabIndex = 5;

            _txtDetailsCommandText = new TextBox();
            _txtDetailsCommandText.SetBounds(206, 40, 154, 20);
            _txtDetailsCommandText.TabIndex     = 6;
            _txtDetailsCommandText.TextChanged += new EventHandler(this.OnSetPageDirty);

            Label lblMoreText = new Label();

            lblMoreText.SetBounds(12, 67, 174, 16);
            lblMoreText.Text     = SR.GetString(SR.ObjectListGeneralPage_MoreTextCaption);
            lblMoreText.TabStop  = false;
            lblMoreText.TabIndex = 7;

            _txtMoreText = new TextBox();
            _txtMoreText.SetBounds(12, 83, 154, 20);
            _txtMoreText.TabIndex     = 8;
            _txtMoreText.TextChanged += new EventHandler(this.OnSetPageDirty);

            GroupLabel pagingGroup    = new GroupLabel();
            Label      itemCountLabel = new Label();

            _txtItemCount = new TextBox();

            Label itemsPerPageLabel = new Label();

            _txtItemsPerPage = new TextBox();

            pagingGroup.SetBounds(4, 118, 392, 16);
            pagingGroup.Text     = SR.GetString(SR.ListGeneralPage_PagingGroupLabel);
            pagingGroup.TabIndex = 9;
            pagingGroup.TabStop  = false;

            itemCountLabel.SetBounds(12, 138, 174, 16);
            itemCountLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemCountCaption);
            itemCountLabel.TabStop  = false;
            itemCountLabel.TabIndex = 10;

            _txtItemCount.SetBounds(12, 154, 154, 20);
            _txtItemCount.TextChanged += new EventHandler(this.OnSetPageDirty);
            _txtItemCount.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
            _txtItemCount.TabIndex     = 11;

            itemsPerPageLabel.SetBounds(206, 138, 174, 16);
            itemsPerPageLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemsPerPageCaption);
            itemsPerPageLabel.TabStop  = false;
            itemsPerPageLabel.TabIndex = 12;

            _txtItemsPerPage.SetBounds(206, 154, 154, 20);
            _txtItemsPerPage.TextChanged += new EventHandler(this.OnSetPageDirty);
            _txtItemsPerPage.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
            _txtItemsPerPage.TabIndex     = 13;

            this.Text = SR.GetString(SR.ObjectListGeneralPage_Title);
            this.Size = new Size(402, 300);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "General.ico"
                );

            this.Controls.AddRange(new Control[]
            {
                grplblAppearance,
                lblBackCommandText,
                _txtBackCommandText,
                lblDetailsCommandText,
                _txtDetailsCommandText,
                lblMoreText,
                _txtMoreText,
                pagingGroup,
                itemCountLabel,
                _txtItemCount,
                itemsPerPageLabel,
                _txtItemsPerPage
            });
        }
        protected override void InitForm()
        {
            base.InitForm();

            this._objectList = (ObjectList)Component;
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "Commands.ico"
            );
            this.Size = new Size(402, 300);
            this.Text = SR.GetString(SR.ObjectListCommandsPage_Title);

            GroupLabel grplblCommandList = new GroupLabel();
            grplblCommandList.SetBounds(4, 4, 392, LabelHeight);
            grplblCommandList.Text = SR.GetString(SR.ObjectListCommandsPage_CommandListGroupLabel);
            grplblCommandList.TabIndex = 0;
            grplblCommandList.TabStop = false;

            TreeList.TabIndex = 1;

            Label lblText = new Label();
            lblText.SetBounds(X, Y, ControlWidth, LabelHeight);
            lblText.Text = SR.GetString(SR.ObjectListCommandsPage_TextCaption);
            lblText.TabStop = false;
            lblText.TabIndex = TabIndex;

            _txtText = new TextBox();
            Y += LabelHeight;
            _txtText.SetBounds(X, Y, ControlWidth, CmbHeight);
            _txtText.TextChanged += new EventHandler(this.OnPropertyChanged);
            _txtText.TabIndex = TabIndex + 1;

            GroupLabel grplblData = new GroupLabel();
            grplblData.SetBounds(4, 238, 392, LabelHeight);
            grplblData.Text = SR.GetString(SR.ObjectListCommandsPage_DataGroupLabel);
            grplblData.TabIndex = TabIndex + 2;
            grplblData.TabStop = false;

            Label lblDefaultCommand = new Label();
            lblDefaultCommand.SetBounds(8, 260, 182, LabelHeight);
            lblDefaultCommand.Text = SR.GetString(SR.ObjectListCommandsPage_DefaultCommandCaption);
            lblDefaultCommand.TabStop = false;
            lblDefaultCommand.TabIndex = TabIndex + 3;

            _cmbDefaultCommand = new ComboBox();
            _cmbDefaultCommand.SetBounds(8, 276, 182, 64);
            _cmbDefaultCommand.DropDownStyle = ComboBoxStyle.DropDown;
            _cmbDefaultCommand.Sorted = true;
            _cmbDefaultCommand.TabIndex = TabIndex + 4;
            _cmbDefaultCommand.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
            _cmbDefaultCommand.TextChanged += new EventHandler(this.OnSetPageDirty);

            this.Controls.AddRange(new Control[]
                                    {
                                        grplblCommandList,
                                        lblText,
                                        _txtText,
                                        grplblData,
                                        lblDefaultCommand,
                                        _cmbDefaultCommand
                                    });
        }
Exemplo n.º 9
0
        private void InitForm()
        {
            System.Windows.Forms.Label label = new System.Windows.Forms.Label();
            this.formatTree = new System.Windows.Forms.TreeView();
            this.stylePanel = new System.Windows.Forms.Panel();
            GroupLabel label2 = new GroupLabel();

            System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
            this.foreColorCombo        = new ColorComboBox();
            this.foreColorPickerButton = new System.Windows.Forms.Button();
            System.Windows.Forms.Label label4 = new System.Windows.Forms.Label();
            this.backColorCombo        = new ColorComboBox();
            this.backColorPickerButton = new System.Windows.Forms.Button();
            System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
            this.fontNameCombo = new ComboBox();
            System.Windows.Forms.Label label6 = new System.Windows.Forms.Label();
            this.fontSizeCombo  = new UnsettableComboBox();
            this.fontSizeUnit   = new UnitControl();
            this.boldCheck      = new System.Windows.Forms.CheckBox();
            this.italicCheck    = new System.Windows.Forms.CheckBox();
            this.underlineCheck = new System.Windows.Forms.CheckBox();
            this.strikeOutCheck = new System.Windows.Forms.CheckBox();
            this.overlineCheck  = new System.Windows.Forms.CheckBox();
            GroupLabel label7 = new GroupLabel();

            System.Windows.Forms.Label label8 = new System.Windows.Forms.Label();
            this.horzAlignCombo     = new UnsettableComboBox();
            this.vertAlignLabel     = new System.Windows.Forms.Label();
            this.vertAlignCombo     = new UnsettableComboBox();
            this.allowWrappingCheck = new System.Windows.Forms.CheckBox();
            GroupLabel label9 = null;

            System.Windows.Forms.Label label10 = null;
            if (base.IsDataGridMode)
            {
                this.columnPanel = new System.Windows.Forms.Panel();
                label9           = new GroupLabel();
                label10          = new System.Windows.Forms.Label();
                this.widthUnit   = new UnitControl();
            }
            label.SetBounds(4, 4, 0x6f, 14);
            label.Text     = System.Design.SR.GetString("BDLFmt_Objects");
            label.TabStop  = false;
            label.TabIndex = 2;
            this.formatTree.SetBounds(4, 20, 0xa2, 350);
            this.formatTree.HideSelection = false;
            this.formatTree.TabIndex      = 3;
            this.formatTree.AfterSelect  += new TreeViewEventHandler(this.OnSelChangedFormatObject);
            this.stylePanel.SetBounds(0xb1, 4, 230, 370);
            this.stylePanel.TabIndex = 6;
            this.stylePanel.Visible  = false;
            label2.SetBounds(0, 2, 0xe0, 14);
            label2.Text     = System.Design.SR.GetString("BDLFmt_AppearanceGroup");
            label2.TabStop  = false;
            label2.TabIndex = 1;
            label3.SetBounds(8, 0x13, 160, 14);
            label3.Text     = System.Design.SR.GetString("BDLFmt_ForeColor");
            label3.TabStop  = false;
            label3.TabIndex = 2;
            this.foreColorCombo.SetBounds(8, 0x25, 0x66, 0x16);
            this.foreColorCombo.TabIndex              = 3;
            this.foreColorCombo.TextChanged          += new EventHandler(this.OnFormatChanged);
            this.foreColorCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
            this.foreColorPickerButton.SetBounds(0x72, 0x24, 0x18, 0x16);
            this.foreColorPickerButton.TabIndex              = 4;
            this.foreColorPickerButton.Text                  = "...";
            this.foreColorPickerButton.FlatStyle             = FlatStyle.System;
            this.foreColorPickerButton.Click                += new EventHandler(this.OnClickForeColorPicker);
            this.foreColorPickerButton.AccessibleName        = System.Design.SR.GetString("BDLFmt_ChooseColorButton");
            this.foreColorPickerButton.AccessibleDescription = System.Design.SR.GetString("BDLFmt_ChooseForeColorDesc");
            label4.SetBounds(8, 0x3e, 160, 14);
            label4.Text     = System.Design.SR.GetString("BDLFmt_BackColor");
            label4.TabStop  = false;
            label4.TabIndex = 5;
            this.backColorCombo.SetBounds(8, 0x4e, 0x66, 0x16);
            this.backColorCombo.TabIndex              = 6;
            this.backColorCombo.TextChanged          += new EventHandler(this.OnFormatChanged);
            this.backColorCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
            this.backColorPickerButton.SetBounds(0x72, 0x4d, 0x18, 0x16);
            this.backColorPickerButton.TabIndex              = 7;
            this.backColorPickerButton.Text                  = "...";
            this.backColorPickerButton.FlatStyle             = FlatStyle.System;
            this.backColorPickerButton.Click                += new EventHandler(this.OnClickBackColorPicker);
            this.backColorPickerButton.AccessibleName        = System.Design.SR.GetString("BDLFmt_ChooseColorButton");
            this.backColorPickerButton.AccessibleDescription = System.Design.SR.GetString("BDLFmt_ChooseBackColorDesc");
            label5.SetBounds(8, 0x68, 160, 14);
            label5.Text     = System.Design.SR.GetString("BDLFmt_FontName");
            label5.TabStop  = false;
            label5.TabIndex = 8;
            this.fontNameCombo.SetBounds(8, 120, 200, 0x16);
            this.fontNameCombo.Sorted                = true;
            this.fontNameCombo.TabIndex              = 9;
            this.fontNameCombo.SelectedIndexChanged += new EventHandler(this.OnFontNameChanged);
            this.fontNameCombo.TextChanged          += new EventHandler(this.OnFontNameChanged);
            label6.SetBounds(8, 0x92, 160, 14);
            label6.Text     = System.Design.SR.GetString("BDLFmt_FontSize");
            label6.TabStop  = false;
            label6.TabIndex = 10;
            this.fontSizeCombo.SetBounds(8, 0xa2, 100, 0x16);
            this.fontSizeCombo.TabIndex         = 11;
            this.fontSizeCombo.MaxDropDownItems = 11;
            this.fontSizeCombo.DropDownStyle    = ComboBoxStyle.DropDownList;
            this.fontSizeCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLFmt_FS_Smaller"), System.Design.SR.GetString("BDLFmt_FS_Larger"), System.Design.SR.GetString("BDLFmt_FS_XXSmall"), System.Design.SR.GetString("BDLFmt_FS_XSmall"), System.Design.SR.GetString("BDLFmt_FS_Small"), System.Design.SR.GetString("BDLFmt_FS_Medium"), System.Design.SR.GetString("BDLFmt_FS_Large"), System.Design.SR.GetString("BDLFmt_FS_XLarge"), System.Design.SR.GetString("BDLFmt_FS_XXLarge"), System.Design.SR.GetString("BDLFmt_FS_Custom") });
            this.fontSizeCombo.SelectedIndexChanged += new EventHandler(this.OnFontSizeChanged);
            this.fontSizeUnit.SetBounds(0x70, 0xa2, 0x60, 0x16);
            this.fontSizeUnit.AllowNegativeValues        = false;
            this.fontSizeUnit.TabIndex                   = 12;
            this.fontSizeUnit.Changed                   += new EventHandler(this.OnFormatChanged);
            this.fontSizeUnit.ValueAccessibleDescription = System.Design.SR.GetString("BDLFmt_FontSizeValueDesc");
            this.fontSizeUnit.ValueAccessibleName        = System.Design.SR.GetString("BDLFmt_FontSizeValueName");
            this.fontSizeUnit.UnitAccessibleDescription  = System.Design.SR.GetString("BDLFmt_FontSizeUnitDesc");
            this.fontSizeUnit.UnitAccessibleName         = System.Design.SR.GetString("BDLFmt_FontSizeUnitName");
            this.boldCheck.SetBounds(8, 0xba, 0x6a, 20);
            this.boldCheck.Text            = System.Design.SR.GetString("BDLFmt_FontBold");
            this.boldCheck.TabIndex        = 13;
            this.boldCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.boldCheck.FlatStyle       = FlatStyle.System;
            this.boldCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            this.italicCheck.SetBounds(8, 0xcc, 0x6a, 20);
            this.italicCheck.Text            = System.Design.SR.GetString("BDLFmt_FontItalic");
            this.italicCheck.TabIndex        = 14;
            this.italicCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.italicCheck.FlatStyle       = FlatStyle.System;
            this.italicCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            this.underlineCheck.SetBounds(8, 0xde, 0x6a, 20);
            this.underlineCheck.Text            = System.Design.SR.GetString("BDLFmt_FontUnderline");
            this.underlineCheck.TabIndex        = 15;
            this.underlineCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.underlineCheck.FlatStyle       = FlatStyle.System;
            this.underlineCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            this.strikeOutCheck.SetBounds(120, 0xba, 0x6a, 20);
            this.strikeOutCheck.Text            = System.Design.SR.GetString("BDLFmt_FontStrikeout");
            this.strikeOutCheck.TabIndex        = 0x10;
            this.strikeOutCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.strikeOutCheck.FlatStyle       = FlatStyle.System;
            this.strikeOutCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            this.overlineCheck.SetBounds(120, 0xcc, 0x6a, 20);
            this.overlineCheck.Text            = System.Design.SR.GetString("BDLFmt_FontOverline");
            this.overlineCheck.TabIndex        = 0x11;
            this.overlineCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.overlineCheck.FlatStyle       = FlatStyle.System;
            this.overlineCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            label7.SetBounds(0, 0xf6, 0xe0, 14);
            label7.Text     = System.Design.SR.GetString("BDLFmt_AlignmentGroup");
            label7.TabStop  = false;
            label7.TabIndex = 0x12;
            label8.SetBounds(8, 0x108, 160, 14);
            label8.Text     = System.Design.SR.GetString("BDLFmt_HorzAlign");
            label8.TabStop  = false;
            label8.TabIndex = 0x13;
            this.horzAlignCombo.SetBounds(8, 280, 190, 0x16);
            this.horzAlignCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.horzAlignCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLFmt_HA_Left"), System.Design.SR.GetString("BDLFmt_HA_Center"), System.Design.SR.GetString("BDLFmt_HA_Right"), System.Design.SR.GetString("BDLFmt_HA_Justify") });
            this.horzAlignCombo.TabIndex              = 20;
            this.horzAlignCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
            this.vertAlignLabel.SetBounds(8, 0x132, 160, 14);
            this.vertAlignLabel.Text     = System.Design.SR.GetString("BDLFmt_VertAlign");
            this.vertAlignLabel.TabStop  = false;
            this.vertAlignLabel.TabIndex = 0x15;
            this.vertAlignCombo.SetBounds(8, 0x142, 190, 0x16);
            this.vertAlignCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.vertAlignCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLFmt_VA_Top"), System.Design.SR.GetString("BDLFmt_VA_Middle"), System.Design.SR.GetString("BDLFmt_VA_Bottom") });
            this.vertAlignCombo.TabIndex              = 0x16;
            this.vertAlignCombo.SelectedIndexChanged += new EventHandler(this.OnFormatChanged);
            this.allowWrappingCheck.SetBounds(8, 0x15c, 200, 0x11);
            this.allowWrappingCheck.Text            = System.Design.SR.GetString("BDLFmt_AllowWrapping");
            this.allowWrappingCheck.TabIndex        = 0x18;
            this.allowWrappingCheck.FlatStyle       = FlatStyle.System;
            this.allowWrappingCheck.CheckedChanged += new EventHandler(this.OnFormatChanged);
            if (base.IsDataGridMode)
            {
                this.columnPanel.SetBounds(0xb1, 4, 0x117, 350);
                this.columnPanel.TabIndex = 7;
                this.columnPanel.Visible  = false;
                label9.SetBounds(0, 0, 0x117, 14);
                label9.Text     = System.Design.SR.GetString("BDLFmt_LayoutGroup");
                label9.TabStop  = false;
                label9.TabIndex = 0;
                label10.SetBounds(8, 20, 0x40, 14);
                label10.Text     = System.Design.SR.GetString("BDLFmt_Width");
                label10.TabStop  = false;
                label10.TabIndex = 1;
                this.widthUnit.SetBounds(80, 0x11, 0x66, 0x16);
                this.widthUnit.AllowNegativeValues        = false;
                this.widthUnit.DefaultUnit                = 0;
                this.widthUnit.TabIndex                   = 2;
                this.widthUnit.Changed                   += new EventHandler(this.OnFormatChanged);
                this.widthUnit.ValueAccessibleName        = System.Design.SR.GetString("BDLFmt_WidthValueName");
                this.widthUnit.ValueAccessibleDescription = System.Design.SR.GetString("BDLFmt_WidthValueDesc");
                this.widthUnit.UnitAccessibleName         = System.Design.SR.GetString("BDLFmt_WidthUnitName");
                this.widthUnit.UnitAccessibleDescription  = System.Design.SR.GetString("BDLFmt_WidthUnitDesc");
            }
            this.Text = System.Design.SR.GetString("BDLFmt_Text");
            base.AccessibleDescription = System.Design.SR.GetString("BDLFmt_Desc");
            base.Size = new Size(0x198, 370);
            base.CommitOnDeactivate = true;
            base.Icon = new Icon(base.GetType(), "FormatPage.ico");
            this.stylePanel.Controls.Clear();
            this.stylePanel.Controls.AddRange(new Control[] {
                this.allowWrappingCheck, this.vertAlignCombo, this.vertAlignLabel, this.horzAlignCombo, label8, label7, this.overlineCheck, this.strikeOutCheck, this.underlineCheck, this.italicCheck, this.boldCheck, this.fontSizeUnit, this.fontSizeCombo, label6, this.fontNameCombo, label5,
                this.backColorPickerButton, this.backColorCombo, label4, this.foreColorPickerButton, this.foreColorCombo, label3, label2
            });
            if (base.IsDataGridMode)
            {
                this.columnPanel.Controls.Clear();
                this.columnPanel.Controls.AddRange(new Control[] { this.widthUnit, label10, label9 });
                base.Controls.Clear();
                base.Controls.AddRange(new Control[] { this.columnPanel, this.stylePanel, this.formatTree, label });
            }
            else
            {
                base.Controls.Clear();
                base.Controls.AddRange(new Control[] { this.stylePanel, this.formatTree, label });
            }
        }
Exemplo n.º 10
0
        private void InitForm()
        {
            GroupLabel label = new GroupLabel();

            this.allowPagingCheck       = new System.Windows.Forms.CheckBox();
            this.allowCustomPagingCheck = new System.Windows.Forms.CheckBox();
            System.Windows.Forms.Label label2 = new System.Windows.Forms.Label();
            this.pageSizeEdit = new NumberEdit();
            System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
            GroupLabel label4 = new GroupLabel();

            this.visibleCheck = new System.Windows.Forms.CheckBox();
            System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
            this.posCombo = new ComboBox();
            System.Windows.Forms.Label label6 = new System.Windows.Forms.Label();
            this.modeCombo = new ComboBox();
            System.Windows.Forms.Label label7 = new System.Windows.Forms.Label();
            this.nextPageTextEdit = new System.Windows.Forms.TextBox();
            System.Windows.Forms.Label label8 = new System.Windows.Forms.Label();
            this.prevPageTextEdit = new System.Windows.Forms.TextBox();
            System.Windows.Forms.Label label9 = new System.Windows.Forms.Label();
            this.pageButtonCountEdit = new NumberEdit();
            label.SetBounds(4, 4, 0x1af, 0x10);
            label.Text     = System.Design.SR.GetString("DGPg_PagingGroup");
            label.TabStop  = false;
            label.TabIndex = 0;
            this.allowPagingCheck.SetBounds(12, 0x18, 180, 0x10);
            this.allowPagingCheck.Text            = System.Design.SR.GetString("DGPg_AllowPaging");
            this.allowPagingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.allowPagingCheck.TabIndex        = 1;
            this.allowPagingCheck.FlatStyle       = FlatStyle.System;
            this.allowPagingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowPaging);
            this.allowCustomPagingCheck.SetBounds(220, 0x18, 180, 0x10);
            this.allowCustomPagingCheck.Text            = System.Design.SR.GetString("DGPg_AllowCustomPaging");
            this.allowCustomPagingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.allowCustomPagingCheck.TabIndex        = 2;
            this.allowCustomPagingCheck.FlatStyle       = FlatStyle.System;
            this.allowCustomPagingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowCustomPaging);
            label2.SetBounds(12, 50, 100, 14);
            label2.Text     = System.Design.SR.GetString("DGPg_PageSize");
            label2.TabStop  = false;
            label2.TabIndex = 3;
            this.pageSizeEdit.SetBounds(0x70, 0x2e, 40, 0x18);
            this.pageSizeEdit.TabIndex      = 4;
            this.pageSizeEdit.AllowDecimal  = false;
            this.pageSizeEdit.AllowNegative = false;
            this.pageSizeEdit.TextChanged  += new EventHandler(this.OnTextChangedPageSize);
            label3.SetBounds(0x9e, 50, 80, 14);
            label3.Text     = System.Design.SR.GetString("DGPg_Rows");
            label3.TabStop  = false;
            label3.TabIndex = 5;
            label4.SetBounds(4, 0x4e, 0x1af, 14);
            label4.Text     = System.Design.SR.GetString("DGPg_NavigationGroup");
            label4.TabStop  = false;
            label4.TabIndex = 6;
            this.visibleCheck.SetBounds(12, 100, 260, 0x10);
            this.visibleCheck.Text            = System.Design.SR.GetString("DGPg_Visible");
            this.visibleCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.visibleCheck.TabIndex        = 7;
            this.visibleCheck.FlatStyle       = FlatStyle.System;
            this.visibleCheck.CheckedChanged += new EventHandler(this.OnCheckChangedVisible);
            label5.SetBounds(12, 0x7a, 150, 14);
            label5.Text     = System.Design.SR.GetString("DGPg_Position");
            label5.TabStop  = false;
            label5.TabIndex = 8;
            this.posCombo.SetBounds(12, 0x8a, 0x90, 0x15);
            this.posCombo.TabIndex      = 9;
            this.posCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.posCombo.Items.AddRange(new object[] { System.Design.SR.GetString("DGPg_Pos_Top"), System.Design.SR.GetString("DGPg_Pos_Bottom"), System.Design.SR.GetString("DGPg_Pos_TopBottom") });
            this.posCombo.SelectedIndexChanged += new EventHandler(this.OnPagerChanged);
            label6.SetBounds(12, 0xa6, 150, 14);
            label6.Text     = System.Design.SR.GetString("DGPg_Mode");
            label6.TabStop  = false;
            label6.TabIndex = 10;
            this.modeCombo.SetBounds(12, 0xb6, 0x90, 0x40);
            this.modeCombo.TabIndex      = 11;
            this.modeCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.modeCombo.Items.AddRange(new object[] { System.Design.SR.GetString("DGPg_Mode_Buttons"), System.Design.SR.GetString("DGPg_Mode_Numbers") });
            this.modeCombo.SelectedIndexChanged += new EventHandler(this.OnPagerChanged);
            label7.SetBounds(12, 210, 200, 14);
            label7.Text     = System.Design.SR.GetString("DGPg_NextPage");
            label7.TabStop  = false;
            label7.TabIndex = 12;
            this.nextPageTextEdit.SetBounds(12, 0xe2, 0x90, 0x18);
            this.nextPageTextEdit.TabIndex     = 13;
            this.nextPageTextEdit.TextChanged += new EventHandler(this.OnPagerChanged);
            label8.SetBounds(220, 210, 200, 14);
            label8.Text     = System.Design.SR.GetString("DGPg_PrevPage");
            label8.TabStop  = false;
            label8.TabIndex = 14;
            this.prevPageTextEdit.SetBounds(220, 0xe2, 140, 0x18);
            this.prevPageTextEdit.TabIndex     = 15;
            this.prevPageTextEdit.TextChanged += new EventHandler(this.OnPagerChanged);
            label9.SetBounds(12, 0xfe, 200, 14);
            label9.Text     = System.Design.SR.GetString("DGPg_ButtonCount");
            label9.TabStop  = false;
            label9.TabIndex = 0x10;
            this.pageButtonCountEdit.SetBounds(12, 270, 40, 0x18);
            this.pageButtonCountEdit.TabIndex      = 0x11;
            this.pageButtonCountEdit.AllowDecimal  = false;
            this.pageButtonCountEdit.AllowNegative = false;
            this.pageButtonCountEdit.TextChanged  += new EventHandler(this.OnPagerChanged);
            this.Text = System.Design.SR.GetString("DGPg_Text");
            base.AccessibleDescription = System.Design.SR.GetString("DGPg_Desc");
            base.Size = new Size(0x1d0, 300);
            base.CommitOnDeactivate = true;
            base.Icon = new Icon(base.GetType(), "DataGridPagingPage.ico");
            base.Controls.Clear();
            base.Controls.AddRange(new Control[] {
                this.pageButtonCountEdit, label9, this.prevPageTextEdit, label8, this.nextPageTextEdit, label7, this.modeCombo, label6, this.posCombo, label5, this.visibleCheck, label4, label3, this.pageSizeEdit, label2, this.allowCustomPagingCheck,
                this.allowPagingCheck, label
            });
        }
Exemplo n.º 11
0
        /// <summary>
        ///   Initializes the UI of the form.
        /// </summary>
        private void InitForm()
        {
            Debug.Assert(GetBaseControl() != null);
            _isBaseControlList = (GetBaseControl() is List);   // SelectionList otherwise.

            GroupLabel appearanceGroup   = new GroupLabel();
            GroupLabel pagingGroup       = null;
            Label      itemCountLabel    = null;
            Label      itemsPerPageLabel = null;
            Label      rowsLabel         = null;
            Label      decorationLabel   = null;
            Label      selectTypeLabel   = null;

            if (_isBaseControlList)
            {
                pagingGroup          = new GroupLabel();
                itemCountLabel       = new Label();
                _itemCountTextBox    = new TextBox();
                itemsPerPageLabel    = new Label();
                _itemsPerPageTextBox = new TextBox();
                decorationLabel      = new Label();
                _decorationCombo     = new ComboBox();
            }
            else
            {
                rowsLabel        = new Label();
                _rowsTextBox     = new TextBox();
                selectTypeLabel  = new Label();
                _selectTypeCombo = new ComboBox();
            }

            appearanceGroup.SetBounds(4, 4, 372, 16);
            appearanceGroup.Text     = SR.GetString(SR.ListGeneralPage_AppearanceGroupLabel);
            appearanceGroup.TabIndex = 0;
            appearanceGroup.TabStop  = false;

            if (_isBaseControlList)
            {
                decorationLabel.SetBounds(8, 24, 200, 16);
                decorationLabel.Text     = SR.GetString(SR.ListGeneralPage_DecorationCaption);
                decorationLabel.TabStop  = false;
                decorationLabel.TabIndex = 1;

                _decorationCombo.SetBounds(8, 40, 161, 21);
                _decorationCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
                _decorationCombo.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
                _decorationCombo.Items.AddRange(new object[] {
                    SR.GetString(SR.ListGeneralPage_DecorationNone),
                    SR.GetString(SR.ListGeneralPage_DecorationBulleted),
                    SR.GetString(SR.ListGeneralPage_DecorationNumbered)
                });
                _decorationCombo.TabIndex = 2;

                pagingGroup.SetBounds(4, 77, 372, 16);
                pagingGroup.Text     = SR.GetString(SR.ListGeneralPage_PagingGroupLabel);
                pagingGroup.TabIndex = 3;
                pagingGroup.TabStop  = false;

                itemCountLabel.SetBounds(8, 97, 161, 16);
                itemCountLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemCountCaption);
                itemCountLabel.TabStop  = false;
                itemCountLabel.TabIndex = 4;

                _itemCountTextBox.SetBounds(8, 113, 161, 20);
                _itemCountTextBox.TextChanged += new EventHandler(this.OnSetPageDirty);
                _itemCountTextBox.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
                _itemCountTextBox.TabIndex     = 5;

                itemsPerPageLabel.SetBounds(211, 97, 161, 16);
                itemsPerPageLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemsPerPageCaption);
                itemsPerPageLabel.TabStop  = false;
                itemsPerPageLabel.TabIndex = 6;

                _itemsPerPageTextBox.SetBounds(211, 113, 161, 20);
                _itemsPerPageTextBox.TextChanged += new EventHandler(this.OnSetPageDirty);
                _itemsPerPageTextBox.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
                _itemsPerPageTextBox.TabIndex     = 7;
            }
            else
            {
                selectTypeLabel.SetBounds(8, 24, 161, 16);
                selectTypeLabel.Text     = SR.GetString(SR.ListGeneralPage_SelectTypeCaption);
                selectTypeLabel.TabStop  = false;
                selectTypeLabel.TabIndex = 1;

                _selectTypeCombo.SetBounds(8, 40, 161, 21);
                _selectTypeCombo.DropDownStyle         = ComboBoxStyle.DropDownList;
                _selectTypeCombo.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
                _selectTypeCombo.Items.AddRange(new object[] {
                    SR.GetString(SR.ListGeneralPage_SelectTypeDropDown),
                    SR.GetString(SR.ListGeneralPage_SelectTypeListBox),
                    SR.GetString(SR.ListGeneralPage_SelectTypeRadio),
                    SR.GetString(SR.ListGeneralPage_SelectTypeMultiSelectListBox),
                    SR.GetString(SR.ListGeneralPage_SelectTypeCheckBox)
                });
                _selectTypeCombo.TabIndex = 2;

                rowsLabel.SetBounds(211, 24, 161, 16);
                rowsLabel.Text     = SR.GetString(SR.ListGeneralPage_RowsCaption);
                rowsLabel.TabStop  = false;
                rowsLabel.TabIndex = 3;

                _rowsTextBox.SetBounds(211, 40, 161, 20);
                _rowsTextBox.TextChanged += new EventHandler(this.OnSetPageDirty);
                _rowsTextBox.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
                _rowsTextBox.TabIndex     = 4;
            }

            this.Text = SR.GetString(SR.ListGeneralPage_Title);
            this.Size = new Size(382, 270);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "General.ico"
                );

            this.Controls.AddRange(new Control[]
            {
                appearanceGroup
            });

            if (_isBaseControlList)
            {
                this.Controls.AddRange(new Control[]
                {
                    _itemsPerPageTextBox,
                    itemsPerPageLabel,
                    _itemCountTextBox,
                    itemCountLabel,
                    pagingGroup,
                    decorationLabel,
                    _decorationCombo
                });
            }
            else
            {
                this.Controls.AddRange(new Control[]
                {
                    _rowsTextBox,
                    rowsLabel,
                    selectTypeLabel,
                    _selectTypeCombo
                });
            }
        }
        private void InitForm()
        {
            this._cmbDataSource = new UnsettableComboBox();
            this._cmbLabelField = new UnsettableComboBox();
            this._cmbDataMember = new UnsettableComboBox();
            this._xLists        = new InterchangeableLists();

            GroupLabel grplblData = new GroupLabel();

            grplblData.SetBounds(4, 4, 392, 16);
            grplblData.Text     = SR.GetString(SR.ObjectListGeneralPage_DataGroupLabel);
            grplblData.TabIndex = 0;
            grplblData.TabStop  = false;

            Label lblDataSource = new Label();

            lblDataSource.SetBounds(12, 24, 174, 16);
            lblDataSource.Text     = SR.GetString(SR.ObjectListGeneralPage_DataSourceCaption);
            lblDataSource.TabStop  = false;
            lblDataSource.TabIndex = 1;

            _cmbDataSource.SetBounds(12, 40, 154, 64);
            _cmbDataSource.DropDownStyle         = ComboBoxStyle.DropDownList;
            _cmbDataSource.Sorted                = true;
            _cmbDataSource.TabIndex              = 2;
            _cmbDataSource.NotSetText            = SR.GetString(SR.ObjectListGeneralPage_UnboundComboEntry);
            _cmbDataSource.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataSource);

            Label lblDataMember = new Label();

            lblDataMember.SetBounds(206, 24, 174, 16);
            lblDataMember.Text     = SR.GetString(SR.ObjectListGeneralPage_DataMemberCaption);
            lblDataMember.TabStop  = false;
            lblDataMember.TabIndex = 3;

            _cmbDataMember.SetBounds(206, 40, 154, 64);
            _cmbDataMember.DropDownStyle         = ComboBoxStyle.DropDownList;
            _cmbDataMember.Sorted                = true;
            _cmbDataMember.TabIndex              = 4;
            _cmbDataMember.NotSetText            = SR.GetString(SR.ObjectListGeneralPage_NoneComboEntry);
            _cmbDataMember.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataMember);

            Label lblLabelField = new Label();

            lblLabelField.SetBounds(12, 67, 174, 16);
            lblLabelField.Text     = SR.GetString(SR.ObjectListGeneralPage_LabelFieldCaption);
            lblLabelField.TabStop  = false;
            lblLabelField.TabIndex = 5;

            _cmbLabelField.SetBounds(12, 83, 154, 64);
            _cmbLabelField.DropDownStyle         = ComboBoxStyle.DropDownList;
            _cmbLabelField.Sorted                = true;
            _cmbLabelField.TabIndex              = 6;
            _cmbLabelField.NotSetText            = SR.GetString(SR.ObjectListGeneralPage_NoneComboEntry);
            _cmbLabelField.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
            _cmbLabelField.TextChanged          += new EventHandler(this.OnSetPageDirty);

            GroupLabel grplblTableFields = new GroupLabel();

            grplblTableFields.SetBounds(4, 118, 392, 16);
            grplblTableFields.Text     = SR.GetString(SR.ObjectListGeneralPage_TableFieldsGroupLabel);
            grplblTableFields.TabIndex = 9;
            grplblTableFields.TabStop  = false;

            _xLists.Location            = new System.Drawing.Point(4, 130);
            _xLists.TabIndex            = 10;
            _xLists.OnComponentChanged += new EventHandler(this.OnSetPageDirty);
            _xLists.TabStop             = true;
            _xLists.SetTitles(SR.GetString(SR.ObjectListGeneralPage_TableFieldsAvailableListLabel),
                              SR.GetString(SR.ObjectListGeneralPage_TableFieldsSelectedListLabel));

            GroupLabel grplblAppearance = new GroupLabel();

            grplblAppearance.SetBounds(4, 257, 392, 16);
            grplblAppearance.Text     = SR.GetString(SR.ObjectListGeneralPage_AppearanceGroupLabel);
            grplblAppearance.TabIndex = 11;
            grplblAppearance.TabStop  = false;

            Label lblBackCommandText = new Label();

            lblBackCommandText.SetBounds(12, 277, 174, 16);
            lblBackCommandText.Text     = SR.GetString(SR.ObjectListGeneralPage_BackCommandTextCaption);
            lblBackCommandText.TabStop  = false;
            lblBackCommandText.TabIndex = 12;

            _txtBackCommandText = new TextBox();
            _txtBackCommandText.SetBounds(12, 293, 154, 20);
            _txtBackCommandText.TabIndex     = 13;
            _txtBackCommandText.TextChanged += new EventHandler(this.OnSetPageDirty);

            Label lblDetailsCommandText = new Label();

            lblDetailsCommandText.SetBounds(206, 277, 174, 16);
            lblDetailsCommandText.Text     = SR.GetString(SR.ObjectListGeneralPage_DetailsCommandTextCaption);
            lblDetailsCommandText.TabStop  = false;
            lblDetailsCommandText.TabIndex = 14;

            _txtDetailsCommandText = new TextBox();
            _txtDetailsCommandText.SetBounds(206, 293, 154, 20);
            _txtDetailsCommandText.TabIndex     = 15;
            _txtDetailsCommandText.TextChanged += new EventHandler(this.OnSetPageDirty);

            Label lblMoreText = new Label();

            lblMoreText.SetBounds(12, 320, 174, 16);
            lblMoreText.Text     = SR.GetString(SR.ObjectListGeneralPage_MoreTextCaption);
            lblMoreText.TabStop  = false;
            lblMoreText.TabIndex = 16;

            _txtMoreText = new TextBox();
            _txtMoreText.SetBounds(12, 336, 154, 20);
            _txtMoreText.TabIndex     = 17;
            _txtMoreText.TextChanged += new EventHandler(this.OnSetPageDirty);

            GroupLabel pagingGroup    = new GroupLabel();
            Label      itemCountLabel = new Label();

            _txtItemCount = new TextBox();

            Label itemsPerPageLabel = new Label();

            _txtItemsPerPage = new TextBox();

            pagingGroup.SetBounds(4, 371, 392, 16);
            pagingGroup.Text     = SR.GetString(SR.ListGeneralPage_PagingGroupLabel);
            pagingGroup.TabIndex = 18;
            pagingGroup.TabStop  = false;

            itemCountLabel.SetBounds(12, 391, 174, 16);
            itemCountLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemCountCaption);
            itemCountLabel.TabStop  = false;
            itemCountLabel.TabIndex = 19;

            _txtItemCount.SetBounds(12, 407, 154, 20);
            _txtItemCount.TextChanged += new EventHandler(this.OnSetPageDirty);
            _txtItemCount.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
            _txtItemCount.TabIndex     = 20;

            itemsPerPageLabel.SetBounds(206, 391, 174, 16);
            itemsPerPageLabel.Text     = SR.GetString(SR.ListGeneralPage_ItemsPerPageCaption);
            itemsPerPageLabel.TabStop  = false;
            itemsPerPageLabel.TabIndex = 21;

            _txtItemsPerPage.SetBounds(206, 407, 154, 20);
            _txtItemsPerPage.TextChanged += new EventHandler(this.OnSetPageDirty);
            _txtItemsPerPage.KeyPress    += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
            _txtItemsPerPage.TabIndex     = 22;

            this.Text = SR.GetString(SR.ObjectListGeneralPage_Title);
            this.Size = new Size(402, 436);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "General.ico"
                );

            this.Controls.AddRange(new Control[]
            {
                grplblData,
                lblDataSource,
                _cmbDataSource,
                lblDataMember,
                _cmbDataMember,
                lblLabelField,
                _cmbLabelField,
                grplblTableFields,
                _xLists,
                grplblAppearance,
                lblBackCommandText,
                _txtBackCommandText,
                lblDetailsCommandText,
                _txtDetailsCommandText,
                lblMoreText,
                _txtMoreText,
                pagingGroup,
                itemCountLabel,
                _txtItemCount,
                itemsPerPageLabel,
                _txtItemsPerPage
            });
        }
        private void InitForm()
        {
            GroupLabel label = new GroupLabel();

            System.Windows.Forms.Label label2 = new System.Windows.Forms.Label();
            this.cellPaddingEdit = new NumberEdit();
            System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
            this.cellSpacingEdit = new NumberEdit();
            GroupLabel label4 = new GroupLabel();

            System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
            this.gridLinesCombo = new ComboBox();
            System.Windows.Forms.Label label6 = new System.Windows.Forms.Label();
            this.borderColorCombo        = new ColorComboBox();
            this.borderColorPickerButton = new System.Windows.Forms.Button();
            System.Windows.Forms.Label label7 = new System.Windows.Forms.Label();
            this.borderWidthUnit = new UnitControl();
            label.SetBounds(4, 4, 300, 0x10);
            label.Text     = System.Design.SR.GetString("BDLBor_CellMarginsGroup");
            label.TabStop  = false;
            label.TabIndex = 0;
            label2.Text    = System.Design.SR.GetString("BDLBor_CellPadding");
            label2.SetBounds(12, 0x18, 120, 14);
            label2.TabStop  = false;
            label2.TabIndex = 1;
            this.cellPaddingEdit.SetBounds(12, 40, 70, 20);
            this.cellPaddingEdit.AllowDecimal  = false;
            this.cellPaddingEdit.AllowNegative = false;
            this.cellPaddingEdit.TabIndex      = 2;
            this.cellPaddingEdit.TextChanged  += new EventHandler(this.OnBordersChanged);
            label3.Text = System.Design.SR.GetString("BDLBor_CellSpacing");
            label3.SetBounds(160, 0x18, 120, 14);
            label3.TabStop  = false;
            label3.TabIndex = 3;
            this.cellSpacingEdit.SetBounds(160, 40, 70, 20);
            this.cellSpacingEdit.AllowDecimal  = false;
            this.cellSpacingEdit.AllowNegative = false;
            this.cellSpacingEdit.TabIndex      = 4;
            this.cellSpacingEdit.TextChanged  += new EventHandler(this.OnBordersChanged);
            label4.SetBounds(4, 70, 300, 0x10);
            label4.Text     = System.Design.SR.GetString("BDLBor_BorderLinesGroup");
            label4.TabStop  = false;
            label4.TabIndex = 5;
            label5.Text     = System.Design.SR.GetString("BDLBor_GridLines");
            label5.SetBounds(12, 90, 150, 14);
            label5.TabStop  = false;
            label5.TabIndex = 6;
            this.gridLinesCombo.SetBounds(12, 0x6a, 140, 0x15);
            this.gridLinesCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.gridLinesCombo.Items.Clear();
            this.gridLinesCombo.Items.AddRange(new object[] { System.Design.SR.GetString("BDLBor_GL_Horz"), System.Design.SR.GetString("BDLBor_GL_Vert"), System.Design.SR.GetString("BDLBor_GL_Both"), System.Design.SR.GetString("BDLBor_GL_None") });
            this.gridLinesCombo.TabIndex              = 7;
            this.gridLinesCombo.SelectedIndexChanged += new EventHandler(this.OnBordersChanged);
            label6.Text = System.Design.SR.GetString("BDLBor_BorderColor");
            label6.SetBounds(12, 0x86, 150, 14);
            label6.TabStop  = false;
            label6.TabIndex = 8;
            this.borderColorCombo.SetBounds(12, 150, 140, 0x15);
            this.borderColorCombo.TabIndex              = 9;
            this.borderColorCombo.TextChanged          += new EventHandler(this.OnBordersChanged);
            this.borderColorCombo.SelectedIndexChanged += new EventHandler(this.OnBordersChanged);
            this.borderColorPickerButton.SetBounds(0x9c, 0x95, 0x18, 0x16);
            this.borderColorPickerButton.Text                  = "...";
            this.borderColorPickerButton.TabIndex              = 10;
            this.borderColorPickerButton.FlatStyle             = FlatStyle.System;
            this.borderColorPickerButton.Click                += new EventHandler(this.OnClickColorPicker);
            this.borderColorPickerButton.AccessibleName        = System.Design.SR.GetString("BDLBor_ChooseColorButton");
            this.borderColorPickerButton.AccessibleDescription = System.Design.SR.GetString("BDLBor_ChooseColorDesc");
            label7.Text = System.Design.SR.GetString("BDLBor_BorderWidth");
            label7.SetBounds(12, 0xb2, 150, 14);
            label7.TabStop  = false;
            label7.TabIndex = 11;
            this.borderWidthUnit.SetBounds(12, 0xc2, 0x66, 0x16);
            this.borderWidthUnit.AllowNegativeValues        = false;
            this.borderWidthUnit.AllowPercentValues         = false;
            this.borderWidthUnit.DefaultUnit                = 0;
            this.borderWidthUnit.TabIndex                   = 12;
            this.borderWidthUnit.Changed                   += new EventHandler(this.OnBordersChanged);
            this.borderWidthUnit.ValueAccessibleDescription = System.Design.SR.GetString("BDLBor_BorderWidthValueDesc");
            this.borderWidthUnit.ValueAccessibleName        = System.Design.SR.GetString("BDLBor_BorderWidthValueName");
            this.borderWidthUnit.UnitAccessibleDescription  = System.Design.SR.GetString("BDLBor_BorderWidthUnitDesc");
            this.borderWidthUnit.UnitAccessibleName         = System.Design.SR.GetString("BDLBor_BorderWidthUnitName");
            this.Text = System.Design.SR.GetString("BDLBor_Text");
            base.AccessibleDescription = System.Design.SR.GetString("BDLBor_Desc");
            base.Size = new Size(0x134, 0x9c);
            base.CommitOnDeactivate = true;
            base.Icon = new Icon(base.GetType(), "BordersPage.ico");
            base.Controls.Clear();
            base.Controls.AddRange(new Control[] { this.borderWidthUnit, label7, this.borderColorPickerButton, this.borderColorCombo, label6, this.gridLinesCombo, label5, label4, this.cellSpacingEdit, label3, this.cellPaddingEdit, label2, label });
        }
        protected override void InitForm()
        {
            Debug.Assert(GetBaseControl() != null);
            _isBaseControlList = (GetBaseControl() is List);
            this._listDesigner = (IListDesigner)GetBaseDesigner();

            Y = (_isBaseControlList ? 52 : 24);

            base.InitForm();

            this.Text = SR.GetString(SR.ListItemsPage_Title);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(
                typeof(System.Web.UI.Design.MobileControls.MobileControlDesigner),
                "Items.ico"
                );
            this.Size = new Size(382, 220);

            if (_isBaseControlList)
            {
                _itemsAsLinksCheckBox = new CheckBox();
                _itemsAsLinksCheckBox.SetBounds(4, 4, 370, 16);
                _itemsAsLinksCheckBox.Text            = SR.GetString(SR.ListItemsPage_ItemsAsLinksCaption);
                _itemsAsLinksCheckBox.FlatStyle       = FlatStyle.System;
                _itemsAsLinksCheckBox.CheckedChanged += new EventHandler(this.OnSetPageDirty);
                _itemsAsLinksCheckBox.TabIndex        = 0;
            }

            GroupLabel grplblItemList = new GroupLabel();

            grplblItemList.SetBounds(4, _isBaseControlList ? 32 : 4, 372, LabelHeight);
            grplblItemList.Text     = SR.GetString(SR.ListItemsPage_ItemListGroupLabel);
            grplblItemList.TabIndex = 1;
            grplblItemList.TabStop  = false;

            TreeList.TabIndex = 2;

            Label lblValue = new Label();

            lblValue.SetBounds(X, Y, 134, LabelHeight);
            lblValue.Text     = SR.GetString(SR.ListItemsPage_ItemValueCaption);
            lblValue.TabStop  = false;
            lblValue.TabIndex = Index;

            Y        += LabelHeight;
            _txtValue = new TextBox();
            _txtValue.SetBounds(X, Y, 134, CmbHeight);
            _txtValue.TextChanged += new EventHandler(this.OnPropertyChanged);
            _txtValue.TabIndex     = Index + 1;

            this.Controls.AddRange(new Control[]
            {
                grplblItemList,
                lblValue,
                _txtValue
            });

            if (_isBaseControlList)
            {
                this.Controls.Add(_itemsAsLinksCheckBox);
            }
            else
            {
                Y           += CellSpace;
                _ckbSelected = new CheckBox();
                _ckbSelected.SetBounds(X, Y, 134, LabelHeight);
                _ckbSelected.FlatStyle       = System.Windows.Forms.FlatStyle.System;
                _ckbSelected.Text            = SR.GetString(SR.ListItemsPage_ItemSelectedCaption);
                _ckbSelected.CheckedChanged += new EventHandler(this.OnPropertyChanged);
                _ckbSelected.TabIndex        = Index + 2;
                this.Controls.Add(_ckbSelected);
            }
        }
        /// <include file='doc\DataGridPagingPage.uex' path='docs/doc[@for="DataGridPagingPage.InitForm"]/*' />
        /// <devdoc>
        ///    Creates the UI of the page.
        /// </devdoc>
        private void InitForm()
        {
            GroupLabel pagingGroup = new GroupLabel();

            this.allowPagingCheck       = new CheckBox();
            this.allowCustomPagingCheck = new CheckBox();
            Label pageSizeLabel = new Label();

            this.pageSizeEdit = new NumberEdit();
            Label      miscLabel       = new Label();
            GroupLabel navigationGroup = new GroupLabel();

            this.visibleCheck = new CheckBox();
            Label pagingPosLabel = new Label();

            this.posCombo = new ComboBox();
            Label pagingModeLabel = new Label();

            this.modeCombo = new ComboBox();
            Label nextPageLabel = new Label();

            this.nextPageTextEdit = new TextBox();
            Label prevPageLabel = new Label();

            this.prevPageTextEdit = new TextBox();
            Label pageButtonCountLabel = new Label();

            this.pageButtonCountEdit = new NumberEdit();

            pagingGroup.SetBounds(4, 4, 431, 16);
            pagingGroup.Text     = SR.GetString(SR.DGPg_PagingGroup);
            pagingGroup.TabStop  = false;
            pagingGroup.TabIndex = 0;

            allowPagingCheck.SetBounds(12, 24, 180, 16);
            allowPagingCheck.Text            = SR.GetString(SR.DGPg_AllowPaging);
            allowPagingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            allowPagingCheck.TabIndex        = 1;
            allowPagingCheck.FlatStyle       = FlatStyle.System;
            allowPagingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowPaging);

            allowCustomPagingCheck.SetBounds(220, 24, 180, 16);
            allowCustomPagingCheck.Text            = SR.GetString(SR.DGPg_AllowCustomPaging);
            allowCustomPagingCheck.TextAlign       = ContentAlignment.MiddleLeft;
            allowCustomPagingCheck.TabIndex        = 2;
            allowCustomPagingCheck.FlatStyle       = FlatStyle.System;
            allowCustomPagingCheck.CheckedChanged += new EventHandler(this.OnCheckChangedAllowCustomPaging);

            pageSizeLabel.SetBounds(12, 50, 100, 14);
            pageSizeLabel.Text     = SR.GetString(SR.DGPg_PageSize);
            pageSizeLabel.TabStop  = false;
            pageSizeLabel.TabIndex = 3;

            pageSizeEdit.SetBounds(112, 46, 40, 24);
            pageSizeEdit.TabIndex      = 4;
            pageSizeEdit.AllowDecimal  = false;
            pageSizeEdit.AllowNegative = false;
            pageSizeEdit.TextChanged  += new EventHandler(this.OnTextChangedPageSize);

            miscLabel.SetBounds(158, 50, 80, 14);
            miscLabel.Text     = SR.GetString(SR.DGPg_Rows);
            miscLabel.TabStop  = false;
            miscLabel.TabIndex = 5;

            navigationGroup.SetBounds(4, 78, 431, 14);
            navigationGroup.Text     = SR.GetString(SR.DGPg_NavigationGroup);
            navigationGroup.TabStop  = false;
            navigationGroup.TabIndex = 6;

            visibleCheck.SetBounds(12, 100, 260, 16);
            visibleCheck.Text            = SR.GetString(SR.DGPg_Visible);
            visibleCheck.TextAlign       = ContentAlignment.MiddleLeft;
            visibleCheck.TabIndex        = 7;
            visibleCheck.FlatStyle       = FlatStyle.System;
            visibleCheck.CheckedChanged += new EventHandler(this.OnCheckChangedVisible);

            pagingPosLabel.SetBounds(12, 122, 150, 14);
            pagingPosLabel.Text     = SR.GetString(SR.DGPg_Position);
            pagingPosLabel.TabStop  = false;
            pagingPosLabel.TabIndex = 8;

            posCombo.SetBounds(12, 138, 144, 21);
            posCombo.TabIndex      = 9;
            posCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            posCombo.Items.AddRange(new object[] {
                SR.GetString(SR.DGPg_Pos_Top),
                SR.GetString(SR.DGPg_Pos_Bottom),
                SR.GetString(SR.DGPg_Pos_TopBottom)
            });
            posCombo.SelectedIndexChanged += new EventHandler(this.OnPagerChanged);

            pagingModeLabel.SetBounds(12, 166, 150, 14);
            pagingModeLabel.Text     = SR.GetString(SR.DGPg_Mode);
            pagingModeLabel.TabStop  = false;
            pagingModeLabel.TabIndex = 10;

            modeCombo.SetBounds(12, 182, 144, 64);
            modeCombo.TabIndex      = 11;
            modeCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            modeCombo.Items.AddRange(new object[] {
                SR.GetString(SR.DGPg_Mode_Buttons),
                SR.GetString(SR.DGPg_Mode_Numbers)
            });
            modeCombo.SelectedIndexChanged += new EventHandler(this.OnPagerChanged);

            nextPageLabel.SetBounds(12, 210, 200, 14);
            nextPageLabel.Text     = SR.GetString(SR.DGPg_NextPage);
            nextPageLabel.TabStop  = false;
            nextPageLabel.TabIndex = 12;

            nextPageTextEdit.SetBounds(12, 226, 144, 24);
            nextPageTextEdit.TabIndex     = 13;
            nextPageTextEdit.TextChanged += new EventHandler(this.OnPagerChanged);

            prevPageLabel.SetBounds(220, 210, 200, 14);
            prevPageLabel.Text     = SR.GetString(SR.DGPg_PrevPage);
            prevPageLabel.TabStop  = false;
            prevPageLabel.TabIndex = 14;

            prevPageTextEdit.SetBounds(220, 226, 140, 24);
            prevPageTextEdit.TabIndex     = 15;
            prevPageTextEdit.TextChanged += new EventHandler(this.OnPagerChanged);

            pageButtonCountLabel.SetBounds(12, 254, 200, 14);
            pageButtonCountLabel.Text     = SR.GetString(SR.DGPg_ButtonCount);
            pageButtonCountLabel.TabStop  = false;
            pageButtonCountLabel.TabIndex = 16;

            pageButtonCountEdit.SetBounds(12, 270, 40, 24);
            pageButtonCountEdit.TabIndex      = 17;
            pageButtonCountEdit.AllowDecimal  = false;
            pageButtonCountEdit.AllowNegative = false;
            pageButtonCountEdit.TextChanged  += new EventHandler(this.OnPagerChanged);

            this.Text = SR.GetString(SR.DGPg_Text);
            this.Size = new Size(464, 300);
            this.CommitOnDeactivate = true;
            this.Icon = new Icon(this.GetType(), "DataGridPagingPage.ico");

            this.Controls.Clear();
            this.Controls.AddRange(new Control[] {
                pageButtonCountEdit,
                pageButtonCountLabel,
                prevPageTextEdit,
                prevPageLabel,
                nextPageTextEdit,
                nextPageLabel,
                modeCombo,
                pagingModeLabel,
                posCombo,
                pagingPosLabel,
                visibleCheck,
                navigationGroup,
                miscLabel,
                pageSizeEdit,
                pageSizeLabel,
                allowCustomPagingCheck,
                allowPagingCheck,
                pagingGroup
            });
        }
        private void InitForm()
        {
            GroupLabel label = new GroupLabel();

            this.showHeaderCheck = new System.Windows.Forms.CheckBox();
            this.showFooterCheck = new System.Windows.Forms.CheckBox();
            GroupLabel label2 = new GroupLabel();

            System.Windows.Forms.Label label3 = new System.Windows.Forms.Label();
            this.repeatColumnsEdit = new NumberEdit();
            System.Windows.Forms.Label label4 = new System.Windows.Forms.Label();
            this.repeatDirectionCombo = new ComboBox();
            System.Windows.Forms.Label label5 = new System.Windows.Forms.Label();
            this.repeatLayoutCombo = new ComboBox();
            GroupLabel label6 = new GroupLabel();

            this.extractRowsCheck = new System.Windows.Forms.CheckBox();
            label.SetBounds(4, 4, 360, 0x10);
            label.Text     = System.Design.SR.GetString("DLGen_HeaderFooterGroup");
            label.TabIndex = 7;
            label.TabStop  = false;
            this.showHeaderCheck.SetBounds(8, 0x18, 170, 0x10);
            this.showHeaderCheck.TabIndex        = 8;
            this.showHeaderCheck.Text            = System.Design.SR.GetString("DLGen_ShowHeader");
            this.showHeaderCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.showHeaderCheck.FlatStyle       = FlatStyle.System;
            this.showHeaderCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowHeader);
            this.showFooterCheck.SetBounds(8, 0x2a, 170, 0x10);
            this.showFooterCheck.TabIndex        = 9;
            this.showFooterCheck.Text            = System.Design.SR.GetString("DLGen_ShowFooter");
            this.showFooterCheck.TextAlign       = ContentAlignment.MiddleLeft;
            this.showFooterCheck.FlatStyle       = FlatStyle.System;
            this.showFooterCheck.CheckedChanged += new EventHandler(this.OnCheckChangedShowFooter);
            label2.SetBounds(4, 0x44, 360, 0x10);
            label2.Text     = System.Design.SR.GetString("DLGen_RepeatLayoutGroup");
            label2.TabIndex = 10;
            label2.TabStop  = false;
            label3.SetBounds(8, 0x58, 0x6a, 0x10);
            label3.Text     = System.Design.SR.GetString("DLGen_RepeatColumns");
            label3.TabStop  = false;
            label3.TabIndex = 11;
            this.repeatColumnsEdit.SetBounds(0x70, 0x54, 40, 0x15);
            this.repeatColumnsEdit.AllowDecimal  = false;
            this.repeatColumnsEdit.AllowNegative = false;
            this.repeatColumnsEdit.TabIndex      = 12;
            this.repeatColumnsEdit.TextChanged  += new EventHandler(this.OnChangedRepeatProps);
            label4.SetBounds(8, 0x71, 0x6a, 0x10);
            label4.Text     = System.Design.SR.GetString("DLGen_RepeatDirection");
            label4.TabStop  = false;
            label4.TabIndex = 13;
            this.repeatDirectionCombo.SetBounds(0x70, 0x6d, 140, 0x38);
            this.repeatDirectionCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.repeatDirectionCombo.Items.AddRange(new object[] { System.Design.SR.GetString("DLGen_RD_Horz"), System.Design.SR.GetString("DLGen_RD_Vert") });
            this.repeatDirectionCombo.TabIndex              = 14;
            this.repeatDirectionCombo.SelectedIndexChanged += new EventHandler(this.OnChangedRepeatProps);
            label5.SetBounds(8, 0x8a, 0x6a, 0x10);
            label5.Text     = System.Design.SR.GetString("DLGen_RepeatLayout");
            label5.TabStop  = false;
            label5.TabIndex = 15;
            this.repeatLayoutCombo.SetBounds(0x70, 0x86, 140, 0x15);
            this.repeatLayoutCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            this.repeatLayoutCombo.Items.AddRange(new object[] { System.Design.SR.GetString("DLGen_RL_Table"), System.Design.SR.GetString("DLGen_RL_Flow") });
            this.repeatLayoutCombo.TabIndex              = 0x10;
            this.repeatLayoutCombo.SelectedIndexChanged += new EventHandler(this.OnChangedRepeatProps);
            label6.SetBounds(4, 0xa2, 360, 0x10);
            label6.Text     = System.Design.SR.GetString("DLGen_Templates");
            label6.TabIndex = 0x11;
            label6.TabStop  = false;
            label6.Visible  = false;
            this.extractRowsCheck.SetBounds(8, 0xb6, 260, 0x10);
            this.extractRowsCheck.Text            = System.Design.SR.GetString("DLGen_ExtractRows");
            this.extractRowsCheck.TabIndex        = 0x12;
            this.extractRowsCheck.Visible         = false;
            this.extractRowsCheck.FlatStyle       = FlatStyle.System;
            this.extractRowsCheck.CheckedChanged += new EventHandler(this.OnCheckChangedExtractRows);
            this.Text = System.Design.SR.GetString("DLGen_Text");
            base.AccessibleDescription = System.Design.SR.GetString("DLGen_Desc");
            base.Size = new Size(0x170, 280);
            base.CommitOnDeactivate = true;
            base.Icon = new Icon(base.GetType(), "DataListGeneralPage.ico");
            base.Controls.Clear();
            base.Controls.AddRange(new Control[] { this.extractRowsCheck, label6, this.repeatLayoutCombo, label5, this.repeatDirectionCombo, label4, this.repeatColumnsEdit, label3, label2, this.showFooterCheck, this.showHeaderCheck, label });
        }