Example #1
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
      });
 }
Example #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), "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 });
 }
Example #3
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 });
     }
 }