private void InitializeComponent() { _btnOK = new Button(); _btnCancel = 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.AccessibleName = SR.GetString(SR.EditableTreeList_AddName); _btnAdd.AccessibleDescription = SR.GetString(SR.EditableTreeList_AddDescription); _btnAdd.Name = SR.GetString(SR.EditableTreeList_AddName); _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.AccessibleName = SR.GetString(SR.EditableTreeList_MoveUpName); _btnUp.AccessibleDescription = SR.GetString(SR.EditableTreeList_MoveUpDescription); _btnUp.Name = SR.GetString(SR.EditableTreeList_MoveUpName); _btnUp.SetBounds(404, 41, 28, 27); _btnUp.Click += new EventHandler(this.OnClickUpButton); _btnUp.Image = GenericUI.SortUpIcon; _btnUp.TabIndex = 6; _btnUp.TabStop = true; _btnDown.AccessibleName = SR.GetString(SR.EditableTreeList_MoveDownName); _btnDown.AccessibleDescription = SR.GetString(SR.EditableTreeList_MoveDownDescription); _btnDown.Name = SR.GetString(SR.EditableTreeList_MoveDownName); _btnDown.SetBounds(404, 72, 28, 27); _btnDown.Click += new EventHandler(this.OnClickDownButton); _btnDown.Image = GenericUI.SortDownIcon; _btnDown.TabIndex = 7; _btnDown.TabStop = true; _btnRemove.AccessibleName = SR.GetString(SR.EditableTreeList_DeleteName); _btnRemove.AccessibleDescription = SR.GetString(SR.EditableTreeList_DeleteDescription); _btnRemove.Name = SR.GetString(SR.EditableTreeList_DeleteName); _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(282, 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(363, 370); _btnCancel.Size = new System.Drawing.Size(75, 23); _btnCancel.TabIndex = 17; _btnCancel.Text = SR.GetString(SR.GenericDialog_CancelBtnCaption); _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.Controls.AddRange(new Control[] { grplblStyleList, lblAvailableStyles, _lvAvailableStyles, _btnAdd, lblDefinedStyles, _tvDefinedStyles, _btnUp, _btnDown, _btnRemove, grplblStyleProperties, lblType, _txtType, lblSample, _samplePreview, lblProperties, _propertyBrowser, _btnOK, _btnCancel, }); }
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 }); }
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); } }
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 }); }
/// <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() { 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 }); }