Exemplo n.º 1
0
 protected override void InitForm()
 {
     this._isBaseControlList = base.GetBaseControl() is List;
     this._listDesigner = (IListDesigner) base.GetBaseDesigner();
     base.Y = this._isBaseControlList ? 0x34 : 0x18;
     base.InitForm();
     this.Text = MobileResource.GetString("ListItemsPage_Title");
     base.CommitOnDeactivate = true;
     base.Icon = new Icon(Type.GetType("System.Web.UI.Design.MobileControls.MobileControlDesigner," + Constants.MobileAssemblyFullName), "Items.ico");
     base.Size = new Size(0x17e, 220);
     if (this._isBaseControlList)
     {
         this._itemsAsLinksCheckBox = new CheckBox();
         this._itemsAsLinksCheckBox.SetBounds(4, 4, 370, 0x10);
         this._itemsAsLinksCheckBox.Text = MobileResource.GetString("ListItemsPage_ItemsAsLinksCaption");
         this._itemsAsLinksCheckBox.FlatStyle = FlatStyle.System;
         this._itemsAsLinksCheckBox.CheckedChanged += new EventHandler(this.OnSetPageDirty);
         this._itemsAsLinksCheckBox.TabIndex = 0;
     }
     GroupLabel label = new GroupLabel();
     label.SetBounds(4, this._isBaseControlList ? 0x20 : 4, 0x174, ListComponentEditorPage.LabelHeight);
     label.Text = MobileResource.GetString("ListItemsPage_ItemListGroupLabel");
     label.TabIndex = 1;
     label.TabStop = false;
     base.TreeList.TabIndex = 2;
     Label label2 = new Label();
     label2.SetBounds(ListComponentEditorPage.X, base.Y, 0x86, ListComponentEditorPage.LabelHeight);
     label2.Text = MobileResource.GetString("ListItemsPage_ItemValueCaption");
     label2.TabStop = false;
     label2.TabIndex = ListComponentEditorPage.Index;
     base.Y += ListComponentEditorPage.LabelHeight;
     this._txtValue = new TextBox();
     this._txtValue.SetBounds(ListComponentEditorPage.X, base.Y, 0x86, ListComponentEditorPage.CmbHeight);
     this._txtValue.TextChanged += new EventHandler(this.OnPropertyChanged);
     this._txtValue.TabIndex = ListComponentEditorPage.Index + 1;
     base.Controls.AddRange(new Control[] { label, label2, this._txtValue });
     if (this._isBaseControlList)
     {
         base.Controls.Add(this._itemsAsLinksCheckBox);
     }
     else
     {
         base.Y += ListComponentEditorPage.CellSpace;
         this._ckbSelected = new CheckBox();
         this._ckbSelected.SetBounds(ListComponentEditorPage.X, base.Y, 0x86, ListComponentEditorPage.LabelHeight);
         this._ckbSelected.FlatStyle = FlatStyle.System;
         this._ckbSelected.Text = MobileResource.GetString("ListItemsPage_ItemSelectedCaption");
         this._ckbSelected.CheckedChanged += new EventHandler(this.OnPropertyChanged);
         this._ckbSelected.TabIndex = ListComponentEditorPage.Index + 2;
         base.Controls.Add(this._ckbSelected);
     }
 }
Exemplo n.º 2
0
 protected override void InitForm()
 {
     base.InitForm();
     this._objectList = (ObjectList) base.Component;
     base.CommitOnDeactivate = true;
     base.Icon = new Icon(Type.GetType("System.Web.UI.Design.MobileControls.MobileControlDesigner," + Constants.MobileAssemblyFullName), "Commands.ico");
     base.Size = new Size(0x192, 300);
     this.Text = MobileResource.GetString("ObjectListCommandsPage_Title");
     GroupLabel label = new GroupLabel();
     label.SetBounds(4, 4, 0x188, ListComponentEditorPage.LabelHeight);
     label.Text = MobileResource.GetString("ObjectListCommandsPage_CommandListGroupLabel");
     label.TabIndex = 0;
     label.TabStop = false;
     base.TreeList.TabIndex = 1;
     Label label2 = new Label();
     label2.SetBounds(ListComponentEditorPage.X, base.Y, ListComponentEditorPage.ControlWidth, ListComponentEditorPage.LabelHeight);
     label2.Text = MobileResource.GetString("ObjectListCommandsPage_TextCaption");
     label2.TabStop = false;
     label2.TabIndex = base.TabIndex;
     this._txtText = new TextBox();
     base.Y += ListComponentEditorPage.LabelHeight;
     this._txtText.SetBounds(ListComponentEditorPage.X, base.Y, ListComponentEditorPage.ControlWidth, ListComponentEditorPage.CmbHeight);
     this._txtText.TextChanged += new EventHandler(this.OnPropertyChanged);
     this._txtText.TabIndex = base.TabIndex + 1;
     GroupLabel label3 = new GroupLabel();
     label3.SetBounds(4, 0xee, 0x188, ListComponentEditorPage.LabelHeight);
     label3.Text = MobileResource.GetString("ObjectListCommandsPage_DataGroupLabel");
     label3.TabIndex = base.TabIndex + 2;
     label3.TabStop = false;
     Label label4 = new Label();
     label4.SetBounds(8, 260, 0xb6, ListComponentEditorPage.LabelHeight);
     label4.Text = MobileResource.GetString("ObjectListCommandsPage_DefaultCommandCaption");
     label4.TabStop = false;
     label4.TabIndex = base.TabIndex + 3;
     this._cmbDefaultCommand = new ComboBox();
     this._cmbDefaultCommand.SetBounds(8, 0x114, 0xb6, 0x40);
     this._cmbDefaultCommand.DropDownStyle = ComboBoxStyle.DropDown;
     this._cmbDefaultCommand.Sorted = true;
     this._cmbDefaultCommand.TabIndex = base.TabIndex + 4;
     this._cmbDefaultCommand.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
     this._cmbDefaultCommand.TextChanged += new EventHandler(this.OnSetPageDirty);
     base.Controls.AddRange(new Control[] { label, label2, this._txtText, label3, label4, this._cmbDefaultCommand });
 }
Exemplo n.º 3
0
 protected override void InitForm()
 {
     base.InitForm();
     this._objectList = (ObjectList) base.Component;
     base.CommitOnDeactivate = true;
     base.Icon = new Icon(Type.GetType("System.Web.UI.Design.MobileControls.MobileControlDesigner," + Constants.MobileAssemblyFullName), "Fields.ico");
     base.Size = new Size(0x192, 300);
     this.Text = MobileResource.GetString("ObjectListFieldsPage_Title");
     this._ckbAutoGenerateFields = new CheckBox();
     this._cmbDataField = new UnsettableComboBox();
     this._ckbVisible = new CheckBox();
     this._txtDataFormatString = new TextBox();
     this._txtTitle = new TextBox();
     this._ckbAutoGenerateFields.SetBounds(4, 4, 0x18c, ListComponentEditorPage.LabelHeight);
     this._ckbAutoGenerateFields.Text = MobileResource.GetString("ObjectListFieldsPage_AutoGenerateFieldsCaption");
     this._ckbAutoGenerateFields.FlatStyle = FlatStyle.System;
     this._ckbAutoGenerateFields.CheckedChanged += new EventHandler(this.OnSetPageDirty);
     this._ckbAutoGenerateFields.TabIndex = 0;
     GroupLabel label = new GroupLabel();
     label.SetBounds(4, 0x20, 0x188, ListComponentEditorPage.LabelHeight);
     label.Text = MobileResource.GetString("ObjectListFieldsPage_FieldListGroupLabel");
     label.TabIndex = 1;
     label.TabStop = false;
     base.TreeList.TabIndex = 2;
     Label label2 = new Label();
     label2.SetBounds(ListComponentEditorPage.X, base.Y, ListComponentEditorPage.ControlWidth, ListComponentEditorPage.LabelHeight);
     label2.Text = MobileResource.GetString("ObjectListFieldsPage_DataFieldCaption");
     label2.TabStop = false;
     label2.TabIndex = ListComponentEditorPage.Index;
     base.Y += ListComponentEditorPage.LabelHeight;
     this._cmbDataField.SetBounds(ListComponentEditorPage.X, base.Y, ListComponentEditorPage.ControlWidth, ListComponentEditorPage.CmbHeight);
     this._cmbDataField.DropDownStyle = ComboBoxStyle.DropDown;
     this._cmbDataField.Sorted = true;
     this._cmbDataField.NotSetText = MobileResource.GetString("ObjectListFieldsPage_NoneComboEntry");
     this._cmbDataField.TextChanged += new EventHandler(this.OnPropertyChanged);
     this._cmbDataField.SelectedIndexChanged += new EventHandler(this.OnPropertyChanged);
     this._cmbDataField.TabIndex = ListComponentEditorPage.Index + 1;
     base.Y += ListComponentEditorPage.CellSpace;
     Label label3 = new Label();
     label3.SetBounds(ListComponentEditorPage.X, base.Y, ListComponentEditorPage.ControlWidth, ListComponentEditorPage.LabelHeight);
     label3.Text = MobileResource.GetString("ObjectListFieldsPage_DataFormatStringCaption");
     label3.TabStop = false;
     label3.TabIndex = ListComponentEditorPage.Index + 2;
     base.Y += ListComponentEditorPage.LabelHeight;
     this._txtDataFormatString.SetBounds(ListComponentEditorPage.X, base.Y, ListComponentEditorPage.ControlWidth, ListComponentEditorPage.CmbHeight);
     this._txtDataFormatString.TextChanged += new EventHandler(this.OnPropertyChanged);
     this._txtDataFormatString.TabIndex = ListComponentEditorPage.Index + 3;
     base.Y += ListComponentEditorPage.CellSpace;
     Label label4 = new Label();
     label4.SetBounds(ListComponentEditorPage.X, base.Y, ListComponentEditorPage.ControlWidth, ListComponentEditorPage.LabelHeight);
     label4.Text = MobileResource.GetString("ObjectListFieldsPage_TitleCaption");
     label4.TabStop = false;
     label4.TabIndex = ListComponentEditorPage.Index + 4;
     base.Y += ListComponentEditorPage.LabelHeight;
     this._txtTitle.SetBounds(ListComponentEditorPage.X, base.Y, ListComponentEditorPage.ControlWidth, ListComponentEditorPage.CmbHeight);
     this._txtTitle.TextChanged += new EventHandler(this.OnPropertyChanged);
     this._txtTitle.TabIndex = ListComponentEditorPage.Index + 5;
     base.Y += ListComponentEditorPage.CellSpace;
     this._ckbVisible.SetBounds(ListComponentEditorPage.X, base.Y, ListComponentEditorPage.ControlWidth, ListComponentEditorPage.CmbHeight);
     this._ckbVisible.FlatStyle = FlatStyle.System;
     this._ckbVisible.Text = MobileResource.GetString("ObjectListFieldsPage_VisibleCaption");
     this._ckbVisible.CheckedChanged += new EventHandler(this.OnPropertyChanged);
     this._ckbVisible.TabIndex = ListComponentEditorPage.Index + 6;
     base.Controls.AddRange(new Control[] { this._ckbAutoGenerateFields, label, label2, this._cmbDataField, label3, this._txtDataFormatString, label4, this._txtTitle, this._ckbVisible });
 }
Exemplo n.º 4
0
 private void InitForm()
 {
     this._cmbDataSource = new UnsettableComboBox();
     this._cmbLabelField = new UnsettableComboBox();
     this._cmbDataMember = new UnsettableComboBox();
     this._xLists = new InterchangeableLists();
     GroupLabel label = new GroupLabel();
     label.SetBounds(4, 4, 0x188, 0x10);
     label.Text = MobileResource.GetString("ObjectListGeneralPage_DataGroupLabel");
     label.TabIndex = 0;
     label.TabStop = false;
     Label label2 = new Label();
     label2.SetBounds(12, 0x18, 0xae, 0x10);
     label2.Text = MobileResource.GetString("ObjectListGeneralPage_DataSourceCaption");
     label2.TabStop = false;
     label2.TabIndex = 1;
     this._cmbDataSource.SetBounds(12, 40, 0x9a, 0x40);
     this._cmbDataSource.DropDownStyle = ComboBoxStyle.DropDownList;
     this._cmbDataSource.Sorted = true;
     this._cmbDataSource.TabIndex = 2;
     this._cmbDataSource.NotSetText = MobileResource.GetString("ObjectListGeneralPage_UnboundComboEntry");
     this._cmbDataSource.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataSource);
     Label label3 = new Label();
     label3.SetBounds(0xce, 0x18, 0xae, 0x10);
     label3.Text = MobileResource.GetString("ObjectListGeneralPage_DataMemberCaption");
     label3.TabStop = false;
     label3.TabIndex = 3;
     this._cmbDataMember.SetBounds(0xce, 40, 0x9a, 0x40);
     this._cmbDataMember.DropDownStyle = ComboBoxStyle.DropDownList;
     this._cmbDataMember.Sorted = true;
     this._cmbDataMember.TabIndex = 4;
     this._cmbDataMember.NotSetText = MobileResource.GetString("ObjectListGeneralPage_NoneComboEntry");
     this._cmbDataMember.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataMember);
     Label label4 = new Label();
     label4.SetBounds(12, 0x43, 0xae, 0x10);
     label4.Text = MobileResource.GetString("ObjectListGeneralPage_LabelFieldCaption");
     label4.TabStop = false;
     label4.TabIndex = 5;
     this._cmbLabelField.SetBounds(12, 0x53, 0x9a, 0x40);
     this._cmbLabelField.DropDownStyle = ComboBoxStyle.DropDownList;
     this._cmbLabelField.Sorted = true;
     this._cmbLabelField.TabIndex = 6;
     this._cmbLabelField.NotSetText = MobileResource.GetString("ObjectListGeneralPage_NoneComboEntry");
     this._cmbLabelField.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
     this._cmbLabelField.TextChanged += new EventHandler(this.OnSetPageDirty);
     GroupLabel label5 = new GroupLabel();
     label5.SetBounds(4, 0x76, 0x188, 0x10);
     label5.Text = MobileResource.GetString("ObjectListGeneralPage_TableFieldsGroupLabel");
     label5.TabIndex = 9;
     label5.TabStop = false;
     this._xLists.Location = new Point(4, 130);
     this._xLists.TabIndex = 10;
     this._xLists.OnComponentChanged = (EventHandler) Delegate.Combine(this._xLists.OnComponentChanged, new EventHandler(this.OnSetPageDirty));
     this._xLists.TabStop = true;
     this._xLists.SetTitles(MobileResource.GetString("ObjectListGeneralPage_TableFieldsAvailableListLabel"), MobileResource.GetString("ObjectListGeneralPage_TableFieldsSelectedListLabel"));
     GroupLabel label6 = new GroupLabel();
     label6.SetBounds(4, 0x101, 0x188, 0x10);
     label6.Text = MobileResource.GetString("ObjectListGeneralPage_AppearanceGroupLabel");
     label6.TabIndex = 11;
     label6.TabStop = false;
     Label label7 = new Label();
     label7.SetBounds(12, 0x115, 0xae, 0x10);
     label7.Text = MobileResource.GetString("ObjectListGeneralPage_BackCommandTextCaption");
     label7.TabStop = false;
     label7.TabIndex = 12;
     this._txtBackCommandText = new TextBox();
     this._txtBackCommandText.SetBounds(12, 0x125, 0x9a, 20);
     this._txtBackCommandText.TabIndex = 13;
     this._txtBackCommandText.TextChanged += new EventHandler(this.OnSetPageDirty);
     Label label8 = new Label();
     label8.SetBounds(0xce, 0x115, 0xae, 0x10);
     label8.Text = MobileResource.GetString("ObjectListGeneralPage_DetailsCommandTextCaption");
     label8.TabStop = false;
     label8.TabIndex = 14;
     this._txtDetailsCommandText = new TextBox();
     this._txtDetailsCommandText.SetBounds(0xce, 0x125, 0x9a, 20);
     this._txtDetailsCommandText.TabIndex = 15;
     this._txtDetailsCommandText.TextChanged += new EventHandler(this.OnSetPageDirty);
     Label label9 = new Label();
     label9.SetBounds(12, 320, 0xae, 0x10);
     label9.Text = MobileResource.GetString("ObjectListGeneralPage_MoreTextCaption");
     label9.TabStop = false;
     label9.TabIndex = 0x10;
     this._txtMoreText = new TextBox();
     this._txtMoreText.SetBounds(12, 0x150, 0x9a, 20);
     this._txtMoreText.TabIndex = 0x11;
     this._txtMoreText.TextChanged += new EventHandler(this.OnSetPageDirty);
     GroupLabel label10 = new GroupLabel();
     Label label11 = new Label();
     this._txtItemCount = new TextBox();
     Label label12 = new Label();
     this._txtItemsPerPage = new TextBox();
     label10.SetBounds(4, 0x173, 0x188, 0x10);
     label10.Text = MobileResource.GetString("ListGeneralPage_PagingGroupLabel");
     label10.TabIndex = 0x12;
     label10.TabStop = false;
     label11.SetBounds(12, 0x187, 0xae, 0x10);
     label11.Text = MobileResource.GetString("ListGeneralPage_ItemCountCaption");
     label11.TabStop = false;
     label11.TabIndex = 0x13;
     this._txtItemCount.SetBounds(12, 0x197, 0x9a, 20);
     this._txtItemCount.TextChanged += new EventHandler(this.OnSetPageDirty);
     this._txtItemCount.KeyPress += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
     this._txtItemCount.TabIndex = 20;
     label12.SetBounds(0xce, 0x187, 0xae, 0x10);
     label12.Text = MobileResource.GetString("ListGeneralPage_ItemsPerPageCaption");
     label12.TabStop = false;
     label12.TabIndex = 0x15;
     this._txtItemsPerPage.SetBounds(0xce, 0x197, 0x9a, 20);
     this._txtItemsPerPage.TextChanged += new EventHandler(this.OnSetPageDirty);
     this._txtItemsPerPage.KeyPress += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
     this._txtItemsPerPage.TabIndex = 0x16;
     this.Text = MobileResource.GetString("ObjectListGeneralPage_Title");
     base.Size = new Size(0x192, 0x1b4);
     base.CommitOnDeactivate = true;
     base.Icon = new Icon(Type.GetType("System.Web.UI.Design.MobileControls.MobileControlDesigner," + Constants.MobileAssemblyFullName), "General.ico");
     base.Controls.AddRange(new Control[] {
         label, label2, this._cmbDataSource, label3, this._cmbDataMember, label4, this._cmbLabelField, label5, this._xLists, label6, label7, this._txtBackCommandText, label8, this._txtDetailsCommandText, label9, this._txtMoreText,
         label10, label11, this._txtItemCount, label12, this._txtItemsPerPage
      });
 }
Exemplo n.º 5
0
 private void InitializeComponent()
 {
     this._btnOK = new Button();
     this._btnCancel = new Button();
     this._btnHelp = new Button();
     this._btnUp = new Button();
     this._btnDown = new Button();
     this._btnAdd = new Button();
     this._btnRemove = new Button();
     this._txtType = new TextBox();
     this._tvDefinedStyles = new TreeView();
     this._lvAvailableStyles = new ListView();
     this._samplePreview = Utils.CreateMSHTMLHost();
     this._propertyBrowser = new PropertyGrid();
     this._cntxtMenuItem = new MenuItem();
     this._cntxtMenu = new ContextMenu();
     GroupLabel label = new GroupLabel();
     label.SetBounds(6, 5, 0x1b0, 0x10);
     label.Text = MobileResource.GetString("StylesEditorDialog_StyleListGroupLabel");
     label.TabStop = false;
     label.TabIndex = 0;
     Label label2 = new Label();
     label2.SetBounds(14, 0x19, 180, 0x10);
     label2.Text = MobileResource.GetString("StylesEditorDialog_AvailableStylesCaption");
     label2.TabStop = false;
     label2.TabIndex = 1;
     ColumnHeader header = new ColumnHeader();
     ColumnHeader header2 = new ColumnHeader();
     header.Width = 0x10;
     header.TextAlign = HorizontalAlignment.Left;
     header2.Width = 0x10;
     header2.TextAlign = HorizontalAlignment.Left;
     this._lvAvailableStyles.SetBounds(14, 0x29, 180, 0x5f);
     this._lvAvailableStyles.HeaderStyle = ColumnHeaderStyle.None;
     this._lvAvailableStyles.MultiSelect = false;
     this._lvAvailableStyles.HideSelection = false;
     this._lvAvailableStyles.FullRowSelect = true;
     this._lvAvailableStyles.View = View.Details;
     this._lvAvailableStyles.Columns.AddRange(new ColumnHeader[] { header, header2 });
     this._lvAvailableStyles.SelectedIndexChanged += new EventHandler(this.OnNewStyleTypeChanged);
     this._lvAvailableStyles.DoubleClick += new EventHandler(this.OnDoubleClick);
     this._lvAvailableStyles.Sorting = SortOrder.Ascending;
     this._lvAvailableStyles.TabIndex = 2;
     this._lvAvailableStyles.TabStop = true;
     this._btnAdd.SetBounds(0xc6, 0x4d, 0x20, 0x19);
     this._btnAdd.Text = MobileResource.GetString("StylesEditorDialog_AddBtnCation");
     this._btnAdd.Click += new EventHandler(this.OnClickAddButton);
     this._btnAdd.TabIndex = 3;
     this._btnAdd.TabStop = true;
     Label label3 = new Label();
     label3.SetBounds(0xea, 0x19, 0xa6, 0x10);
     label3.Text = MobileResource.GetString("StylesEditorDialog_DefinedStylesCaption");
     label3.TabStop = false;
     label3.TabIndex = 4;
     this._tvDefinedStyles.SetBounds(0xea, 0x29, 0xa6, 0x5f);
     this._tvDefinedStyles.AfterSelect += new TreeViewEventHandler(this.OnStylesSelected);
     this._tvDefinedStyles.AfterLabelEdit += new NodeLabelEditEventHandler(this.OnAfterLabelEdit);
     this._tvDefinedStyles.LabelEdit = true;
     this._tvDefinedStyles.ShowPlusMinus = false;
     this._tvDefinedStyles.HideSelection = false;
     this._tvDefinedStyles.Indent = 15;
     this._tvDefinedStyles.ShowRootLines = false;
     this._tvDefinedStyles.ShowLines = false;
     this._tvDefinedStyles.ContextMenu = this._cntxtMenu;
     this._tvDefinedStyles.TabIndex = 5;
     this._tvDefinedStyles.TabStop = true;
     this._tvDefinedStyles.KeyDown += new KeyEventHandler(this.OnKeyDown);
     this._tvDefinedStyles.MouseUp += new MouseEventHandler(this.OnListMouseUp);
     this._tvDefinedStyles.MouseDown += new MouseEventHandler(this.OnListMouseDown);
     this._btnUp.SetBounds(0x194, 0x29, 0x1c, 0x1b);
     this._btnUp.Click += new EventHandler(this.OnClickUpButton);
     this._btnUp.Image = GenericUI.SortUpIcon;
     this._btnUp.TabIndex = 6;
     this._btnUp.TabStop = true;
     this._btnDown.SetBounds(0x194, 0x48, 0x1c, 0x1b);
     this._btnDown.Click += new EventHandler(this.OnClickDownButton);
     this._btnDown.Image = GenericUI.SortDownIcon;
     this._btnDown.TabIndex = 7;
     this._btnDown.TabStop = true;
     this._btnRemove.SetBounds(0x194, 0x6d, 0x1c, 0x1b);
     this._btnRemove.Click += new EventHandler(this.OnClickRemoveButton);
     this._btnRemove.Image = GenericUI.DeleteIcon;
     this._btnRemove.TabIndex = 8;
     this._btnRemove.TabStop = true;
     GroupLabel label4 = new GroupLabel();
     label4.SetBounds(6, 0x91, 0x1b0, 0x10);
     label4.Text = MobileResource.GetString("StylesEditorDialog_StylePropertiesGroupLabel");
     label4.TabStop = false;
     label4.TabIndex = 9;
     Label label5 = new Label();
     label5.SetBounds(14, 0xa5, 180, 0x10);
     label5.Text = MobileResource.GetString("StylesEditorDialog_TypeCaption");
     label5.TabIndex = 10;
     label5.TabStop = false;
     this._txtType.SetBounds(14, 0xb5, 180, 0x10);
     this._txtType.ReadOnly = true;
     this._txtType.TabIndex = 11;
     this._txtType.TabStop = true;
     Label label6 = new Label();
     label6.SetBounds(14, 0xd5, 180, 0x10);
     label6.Text = MobileResource.GetString("StylesEditorDialog_SampleCaption");
     label6.TabStop = false;
     label6.TabIndex = 12;
     this._samplePreview.SetBounds(14, 0xe5, 180, 0x4c);
     this._samplePreview.TabStop = false;
     this._samplePreview.TabIndex = 13;
     Label label7 = new Label();
     label7.SetBounds(0xea, 0xa5, 0xc6, 0x10);
     label7.Text = MobileResource.GetString("StylesEditorDialog_PropertiesCaption");
     label7.TabIndex = 14;
     label7.TabStop = false;
     this._propertyBrowser.SetBounds(0xea, 0xb5, 0xc6, 0xb2);
     this._propertyBrowser.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this._propertyBrowser.ToolbarVisible = false;
     this._propertyBrowser.HelpVisible = false;
     this._propertyBrowser.TabIndex = 15;
     this._propertyBrowser.TabStop = true;
     this._propertyBrowser.PropertySort = PropertySort.Alphabetical;
     this._propertyBrowser.PropertyValueChanged += new PropertyValueChangedEventHandler(this.OnPropertyValueChanged);
     this._btnOK.DialogResult = DialogResult.OK;
     this._btnOK.Location = new Point(0xc9, 370);
     this._btnOK.Size = new Size(0x4b, 0x17);
     this._btnOK.TabIndex = 0x10;
     this._btnOK.Text = MobileResource.GetString("GenericDialog_OKBtnCaption");
     this._btnOK.Click += new EventHandler(this.OnClickOKButton);
     this._btnCancel.DialogResult = DialogResult.Cancel;
     this._btnCancel.Location = new Point(0x11a, 370);
     this._btnCancel.Size = new Size(0x4b, 0x17);
     this._btnCancel.TabIndex = 0x11;
     this._btnCancel.Text = MobileResource.GetString("GenericDialog_CancelBtnCaption");
     this._btnHelp.Click += new EventHandler(this.OnClickHelpButton);
     this._btnHelp.Location = new Point(0x16b, 370);
     this._btnHelp.Size = new Size(0x4b, 0x17);
     this._btnHelp.TabIndex = 0x12;
     this._btnHelp.Text = MobileResource.GetString("GenericDialog_HelpBtnCaption");
     this._cntxtMenuItem.Text = MobileResource.GetString("EditableTreeList_Rename");
     this._cntxtMenu.MenuItems.Add(this._cntxtMenuItem);
     this._cntxtMenu.Popup += new EventHandler(this.OnPopup);
     this._cntxtMenuItem.Click += new EventHandler(this.OnContextMenuItemClick);
     this.Text = this._styleSheet.ID + " - " + MobileResource.GetString("StylesEditorDialog_Title");
     base.ClientSize = new Size(0x1bc, 0x191);
     base.AcceptButton = this._btnOK;
     base.CancelButton = this._btnCancel;
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.Activated += new EventHandler(this.StylesEditorDialog_Activated);
     base.HelpRequested += new HelpEventHandler(this.OnHelpRequested);
     base.Controls.AddRange(new Control[] {
         label, label2, this._lvAvailableStyles, this._btnAdd, label3, this._tvDefinedStyles, this._btnUp, this._btnDown, this._btnRemove, label4, label5, this._txtType, label6, this._samplePreview, label7, this._propertyBrowser,
         this._btnOK, this._btnCancel, this._btnHelp
      });
 }
Exemplo n.º 6
0
 private void InitForm()
 {
     this._isBaseControlList = base.GetBaseControl() is List;
     GroupLabel label = new GroupLabel();
     Label label2 = new Label();
     this._dataSourceCombo = new UnsettableComboBox();
     Label label3 = new Label();
     this._dataMemberCombo = new UnsettableComboBox();
     Label label4 = new Label();
     this._dataTextFieldCombo = new UnsettableComboBox();
     Label label5 = new Label();
     this._dataValueFieldCombo = new UnsettableComboBox();
     GroupLabel label6 = new GroupLabel();
     GroupLabel label7 = null;
     Label label8 = null;
     Label label9 = null;
     Label label10 = null;
     Label label11 = null;
     Label label12 = null;
     if (this._isBaseControlList)
     {
         label7 = new GroupLabel();
         label8 = new Label();
         this._itemCountTextBox = new TextBox();
         label9 = new Label();
         this._itemsPerPageTextBox = new TextBox();
         label11 = new Label();
         this._decorationCombo = new ComboBox();
     }
     else
     {
         label10 = new Label();
         this._rowsTextBox = new TextBox();
         label12 = new Label();
         this._selectTypeCombo = new ComboBox();
     }
     label.SetBounds(4, 4, 0x174, 0x10);
     label.Text = MobileResource.GetString("ListGeneralPage_DataGroupLabel");
     label.TabIndex = 0;
     label.TabStop = false;
     label2.SetBounds(8, 0x18, 0xa1, 0x10);
     label2.Text = MobileResource.GetString("ListGeneralPage_DataSourceCaption");
     label2.TabStop = false;
     label2.TabIndex = 1;
     this._dataSourceCombo.SetBounds(8, 40, 0xa1, 0x15);
     this._dataSourceCombo.DropDownStyle = ComboBoxStyle.DropDownList;
     this._dataSourceCombo.Sorted = true;
     this._dataSourceCombo.TabIndex = 2;
     this._dataSourceCombo.NotSetText = MobileResource.GetString("ListGeneralPage_UnboundComboEntry");
     this._dataSourceCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataSource);
     label3.SetBounds(0xd3, 0x18, 0xa1, 0x10);
     label3.Text = MobileResource.GetString("ListGeneralPage_DataMemberCaption");
     label3.TabStop = false;
     label3.TabIndex = 3;
     this._dataMemberCombo.SetBounds(0xd3, 40, 0xa1, 0x15);
     this._dataMemberCombo.DropDownStyle = ComboBoxStyle.DropDownList;
     this._dataMemberCombo.Sorted = true;
     this._dataMemberCombo.TabIndex = 4;
     this._dataMemberCombo.NotSetText = MobileResource.GetString("ListGeneralPage_NoneComboEntry");
     this._dataMemberCombo.SelectedIndexChanged += new EventHandler(this.OnSelChangedDataMember);
     label4.SetBounds(8, 0x43, 0xa1, 0x10);
     label4.Text = MobileResource.GetString("ListGeneralPage_DataTextFieldCaption");
     label4.TabStop = false;
     label4.TabIndex = 5;
     this._dataTextFieldCombo.SetBounds(8, 0x53, 0xa1, 0x15);
     this._dataTextFieldCombo.DropDownStyle = ComboBoxStyle.DropDownList;
     this._dataTextFieldCombo.Sorted = true;
     this._dataTextFieldCombo.TabIndex = 6;
     this._dataTextFieldCombo.NotSetText = MobileResource.GetString("ListGeneralPage_NoneComboEntry");
     this._dataTextFieldCombo.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
     label5.SetBounds(0xd3, 0x43, 0xa1, 0x10);
     label5.Text = MobileResource.GetString("ListGeneralPage_DataValueFieldCaption");
     label5.TabStop = false;
     label5.TabIndex = 7;
     this._dataValueFieldCombo.SetBounds(0xd3, 0x53, 0xa1, 0x15);
     this._dataValueFieldCombo.DropDownStyle = ComboBoxStyle.DropDownList;
     this._dataValueFieldCombo.Sorted = true;
     this._dataValueFieldCombo.TabIndex = 8;
     this._dataValueFieldCombo.NotSetText = MobileResource.GetString("ListGeneralPage_NoneComboEntry");
     this._dataValueFieldCombo.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
     label6.SetBounds(4, 120, 0x174, 0x10);
     label6.Text = MobileResource.GetString("ListGeneralPage_AppearanceGroupLabel");
     label6.TabIndex = 9;
     label6.TabStop = false;
     if (this._isBaseControlList)
     {
         label11.SetBounds(8, 140, 200, 0x10);
         label11.Text = MobileResource.GetString("ListGeneralPage_DecorationCaption");
         label11.TabStop = false;
         label11.TabIndex = 10;
         this._decorationCombo.SetBounds(8, 0x9c, 0xa1, 0x15);
         this._decorationCombo.DropDownStyle = ComboBoxStyle.DropDownList;
         this._decorationCombo.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
         this._decorationCombo.Items.AddRange(new object[] { MobileResource.GetString("ListGeneralPage_DecorationNone"), MobileResource.GetString("ListGeneralPage_DecorationBulleted"), MobileResource.GetString("ListGeneralPage_DecorationNumbered") });
         this._decorationCombo.TabIndex = 11;
         label7.SetBounds(4, 0xc1, 0x174, 0x10);
         label7.Text = MobileResource.GetString("ListGeneralPage_PagingGroupLabel");
         label7.TabIndex = 12;
         label7.TabStop = false;
         label8.SetBounds(8, 0xd5, 0xa1, 0x10);
         label8.Text = MobileResource.GetString("ListGeneralPage_ItemCountCaption");
         label8.TabStop = false;
         label8.TabIndex = 13;
         this._itemCountTextBox.SetBounds(8, 0xe5, 0xa1, 20);
         this._itemCountTextBox.TextChanged += new EventHandler(this.OnSetPageDirty);
         this._itemCountTextBox.KeyPress += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
         this._itemCountTextBox.TabIndex = 14;
         label9.SetBounds(0xd3, 0xd5, 0xa1, 0x10);
         label9.Text = MobileResource.GetString("ListGeneralPage_ItemsPerPageCaption");
         label9.TabStop = false;
         label9.TabIndex = 15;
         this._itemsPerPageTextBox.SetBounds(0xd3, 0xe5, 0xa1, 20);
         this._itemsPerPageTextBox.TextChanged += new EventHandler(this.OnSetPageDirty);
         this._itemsPerPageTextBox.KeyPress += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
         this._itemsPerPageTextBox.TabIndex = 0x10;
     }
     else
     {
         label12.SetBounds(8, 140, 0xa1, 0x10);
         label12.Text = MobileResource.GetString("ListGeneralPage_SelectTypeCaption");
         label12.TabStop = false;
         label12.TabIndex = 10;
         this._selectTypeCombo.SetBounds(8, 0x9c, 0xa1, 0x15);
         this._selectTypeCombo.DropDownStyle = ComboBoxStyle.DropDownList;
         this._selectTypeCombo.SelectedIndexChanged += new EventHandler(this.OnSetPageDirty);
         this._selectTypeCombo.Items.AddRange(new object[] { MobileResource.GetString("ListGeneralPage_SelectTypeDropDown"), MobileResource.GetString("ListGeneralPage_SelectTypeListBox"), MobileResource.GetString("ListGeneralPage_SelectTypeRadio"), MobileResource.GetString("ListGeneralPage_SelectTypeMultiSelectListBox"), MobileResource.GetString("ListGeneralPage_SelectTypeCheckBox") });
         this._selectTypeCombo.TabIndex = 11;
         label10.SetBounds(0xd3, 140, 0xa1, 0x10);
         label10.Text = MobileResource.GetString("ListGeneralPage_RowsCaption");
         label10.TabStop = false;
         label10.TabIndex = 12;
         this._rowsTextBox.SetBounds(0xd3, 0x9c, 0xa1, 20);
         this._rowsTextBox.TextChanged += new EventHandler(this.OnSetPageDirty);
         this._rowsTextBox.KeyPress += new KeyPressEventHandler(this.OnKeyPressNumberTextBox);
         this._rowsTextBox.TabIndex = 13;
     }
     this.Text = MobileResource.GetString("ListGeneralPage_Title");
     base.Size = new Size(0x17e, 270);
     base.CommitOnDeactivate = true;
     base.Icon = new Icon(Type.GetType("System.Web.UI.Design.MobileControls.MobileControlDesigner," + Constants.MobileAssemblyFullName), "General.ico");
     base.Controls.AddRange(new Control[] { this._dataTextFieldCombo, label4, this._dataValueFieldCombo, label5, this._dataMemberCombo, label3, this._dataSourceCombo, label2, label, label6 });
     if (this._isBaseControlList)
     {
         base.Controls.AddRange(new Control[] { this._itemsPerPageTextBox, label9, this._itemCountTextBox, label8, label7, label11, this._decorationCombo });
     }
     else
     {
         base.Controls.AddRange(new Control[] { this._rowsTextBox, label10, label12, this._selectTypeCombo });
     }
 }