Ejemplo n.º 1
0
 private void InitializeComponent()
 {
     this.components = new Container();
     System.Windows.Forms.DataGridViewCellStyle style = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle style2 = new System.Windows.Forms.DataGridViewCellStyle();
     System.Windows.Forms.DataGridViewCellStyle style3 = new System.Windows.Forms.DataGridViewCellStyle();
     this.panel1 = new System.Windows.Forms.Panel();
     this.dgwHousePropertys = new System.Windows.Forms.DataGridView();
     this.propertyName = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.selectedType = new System.Windows.Forms.DataGridViewComboBoxColumn();
     this.fasetId = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.fasetItemId = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.selectedFasetName = new System.Windows.Forms.DataGridViewComboBoxColumn();
     this.bsHousePropertys = new System.Windows.Forms.BindingSource(this.components);
     this.bsFasetItems = new System.Windows.Forms.BindingSource(this.components);
     this.panel2 = new System.Windows.Forms.Panel();
     this.apartmentCanonicalTypeView = new ApartmentCanonicalTypeView();
     this.panel3 = new System.Windows.Forms.Panel();
     this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewComboBoxColumn1 = new System.Windows.Forms.DataGridViewComboBoxColumn();
     this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewComboBoxColumn2 = new System.Windows.Forms.DataGridViewComboBoxColumn();
     this.panel1.SuspendLayout();
     this.dgwHousePropertys.BeginInit();
     this.bsHousePropertys.BeginInit();
     this.bsFasetItems.BeginInit();
     this.panel2.SuspendLayout();
     base.SuspendLayout();
     this.panel1.Controls.Add(this.dgwHousePropertys);
     this.panel1.set_Dock(System.Windows.Forms.DockStyle.Top);
     this.panel1.set_Location(new System.Drawing.Point(0, 0));
     this.panel1.set_Name("panel1");
     this.panel1.set_Size(new System.Drawing.Size(0x2b8, 0xdd));
     this.panel1.set_TabIndex(1);
     this.dgwHousePropertys.set_AllowUserToAddRows(false);
     this.dgwHousePropertys.set_AllowUserToDeleteRows(false);
     this.dgwHousePropertys.set_AllowUserToResizeColumns(false);
     this.dgwHousePropertys.set_AllowUserToResizeRows(false);
     this.dgwHousePropertys.set_AutoGenerateColumns(false);
     style.set_Alignment(System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft);
     style.set_BackColor(System.Drawing.SystemColors.ButtonFace);
     style.set_Font(new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0xcc));
     style.set_ForeColor(System.Drawing.SystemColors.InfoText);
     style.set_SelectionBackColor(System.Drawing.SystemColors.InactiveCaption);
     style.set_SelectionForeColor(System.Drawing.SystemColors.HighlightText);
     style.set_WrapMode(System.Windows.Forms.DataGridViewTriState.True);
     this.dgwHousePropertys.set_ColumnHeadersDefaultCellStyle(style);
     this.dgwHousePropertys.set_ColumnHeadersHeightSizeMode(System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize);
     this.dgwHousePropertys.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.propertyName, this.selectedType, this.fasetId, this.fasetItemId, this.selectedFasetName });
     this.dgwHousePropertys.set_DataSource(this.bsHousePropertys);
     style2.set_Alignment(System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft);
     style2.set_BackColor(System.Drawing.SystemColors.Window);
     style2.set_Font(new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0xcc));
     style2.set_ForeColor(System.Drawing.SystemColors.Desktop);
     style2.set_SelectionBackColor(System.Drawing.SystemColors.InactiveCaption);
     style2.set_SelectionForeColor(System.Drawing.SystemColors.HighlightText);
     style2.set_WrapMode(System.Windows.Forms.DataGridViewTriState.False);
     this.dgwHousePropertys.set_DefaultCellStyle(style2);
     this.dgwHousePropertys.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.dgwHousePropertys.set_Location(new System.Drawing.Point(0, 0));
     this.dgwHousePropertys.set_Name("dgwHousePropertys");
     style3.set_Alignment(System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft);
     style3.set_BackColor(System.Drawing.SystemColors.ButtonHighlight);
     style3.set_Font(new System.Drawing.Font("Microsoft Sans Serif", 8.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0xcc));
     style3.set_ForeColor(System.Drawing.SystemColors.InfoText);
     style3.set_SelectionBackColor(System.Drawing.SystemColors.InactiveCaption);
     style3.set_SelectionForeColor(System.Drawing.SystemColors.HighlightText);
     style3.set_WrapMode(System.Windows.Forms.DataGridViewTriState.True);
     this.dgwHousePropertys.set_RowHeadersDefaultCellStyle(style3);
     this.dgwHousePropertys.set_RowHeadersVisible(false);
     this.dgwHousePropertys.set_Size(new System.Drawing.Size(0x2b8, 0xdd));
     this.dgwHousePropertys.set_TabIndex(0);
     this.dgwHousePropertys.add_CellClick(new System.Windows.Forms.DataGridViewCellEventHandler(this.dgwHousePropertys_CellClick));
     this.dgwHousePropertys.add_EditingControlShowing(new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgwHousePropertys_EditingControlShowing));
     this.propertyName.set_DataPropertyName("propertyName");
     this.propertyName.set_HeaderText("Свойство");
     this.propertyName.set_Name("propertyName");
     this.propertyName.set_ReadOnly(true);
     this.propertyName.set_SortMode(System.Windows.Forms.DataGridViewColumnSortMode.NotSortable);
     this.propertyName.set_Width(180);
     this.selectedType.set_DataPropertyName("Id");
     this.selectedType.set_DisplayStyle(System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox);
     this.selectedType.set_HeaderText("Значение");
     this.selectedType.set_Name("selectedType");
     this.selectedType.set_Width(400);
     this.fasetId.set_DataPropertyName("fasetId");
     this.fasetId.set_HeaderText("fasetId");
     this.fasetId.set_Name("fasetId");
     this.fasetId.set_Visible(false);
     this.fasetId.set_Width(0x40);
     this.fasetItemId.set_DataPropertyName("Id");
     this.fasetItemId.set_HeaderText("fasetItemId");
     this.fasetItemId.set_Name("fasetItemId");
     this.fasetItemId.set_Resizable(System.Windows.Forms.DataGridViewTriState.True);
     this.fasetItemId.set_Visible(false);
     this.fasetItemId.set_Width(0x54);
     this.selectedFasetName.set_DataPropertyName("fasetItemId");
     this.selectedFasetName.set_DisplayStyle(System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox);
     this.selectedFasetName.set_HeaderText("Новое значение");
     this.selectedFasetName.set_Name("selectedFasetName");
     this.selectedFasetName.set_Resizable(System.Windows.Forms.DataGridViewTriState.True);
     this.selectedFasetName.set_SortMode(System.Windows.Forms.DataGridViewColumnSortMode.Automatic);
     this.selectedFasetName.set_Visible(false);
     this.selectedFasetName.set_Width(0x72);
     this.bsFasetItems.set_DataSource(typeof(FasetItem));
     this.panel2.Controls.Add(this.apartmentCanonicalTypeView);
     this.panel2.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.panel2.set_Location(new System.Drawing.Point(0, 0xdd));
     this.panel2.set_Name("panel2");
     this.panel2.set_Size(new System.Drawing.Size(0x2b8, 0x9c));
     this.panel2.set_TabIndex(2);
     this.apartmentCanonicalTypeView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.apartmentCanonicalTypeView.set_Location(new System.Drawing.Point(0, 0));
     this.apartmentCanonicalTypeView.set_Name("apartmentCanonicalTypeView");
     this.apartmentCanonicalTypeView.set_Size(new System.Drawing.Size(0x2b8, 0x9c));
     this.apartmentCanonicalTypeView.set_TabIndex(0);
     this.apartmentCanonicalTypeView.set_Visible(false);
     this.panel3.set_Dock(System.Windows.Forms.DockStyle.Bottom);
     this.panel3.set_Location(new System.Drawing.Point(0, 0x179));
     this.panel3.set_Name("panel3");
     this.panel3.set_Size(new System.Drawing.Size(0x2b8, 0x2c));
     this.panel3.set_TabIndex(3);
     this.dataGridViewTextBoxColumn1.set_DataPropertyName("propertyName");
     this.dataGridViewTextBoxColumn1.set_HeaderText("Свойство");
     this.dataGridViewTextBoxColumn1.set_Name("dataGridViewTextBoxColumn1");
     this.dataGridViewTextBoxColumn1.set_ReadOnly(true);
     this.dataGridViewTextBoxColumn1.set_SortMode(System.Windows.Forms.DataGridViewColumnSortMode.NotSortable);
     this.dataGridViewTextBoxColumn1.set_Width(150);
     this.dataGridViewComboBoxColumn1.set_DataPropertyName("fasetItemName");
     this.dataGridViewComboBoxColumn1.set_DataSource(this.bsFasetItems);
     this.dataGridViewComboBoxColumn1.set_DisplayMember("Name");
     this.dataGridViewComboBoxColumn1.set_DisplayStyle(System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox);
     this.dataGridViewComboBoxColumn1.set_HeaderText("Значение");
     this.dataGridViewComboBoxColumn1.set_Name("dataGridViewComboBoxColumn1");
     this.dataGridViewComboBoxColumn1.set_ReadOnly(true);
     this.dataGridViewComboBoxColumn1.set_Resizable(System.Windows.Forms.DataGridViewTriState.True);
     this.dataGridViewComboBoxColumn1.set_SortMode(System.Windows.Forms.DataGridViewColumnSortMode.Automatic);
     this.dataGridViewComboBoxColumn1.set_ValueMember("Id");
     this.dataGridViewComboBoxColumn1.set_Width(300);
     this.dataGridViewTextBoxColumn2.set_DataPropertyName("fasetItemName");
     this.dataGridViewTextBoxColumn2.set_HeaderText("Значение");
     this.dataGridViewTextBoxColumn2.set_Name("dataGridViewTextBoxColumn2");
     this.dataGridViewTextBoxColumn2.set_ReadOnly(true);
     this.dataGridViewTextBoxColumn2.set_Resizable(System.Windows.Forms.DataGridViewTriState.True);
     this.dataGridViewTextBoxColumn2.set_Visible(false);
     this.dataGridViewTextBoxColumn2.set_Width(300);
     this.dataGridViewTextBoxColumn3.set_DataPropertyName("fasetItemName");
     this.dataGridViewTextBoxColumn3.set_HeaderText("Значение");
     this.dataGridViewTextBoxColumn3.set_Name("dataGridViewTextBoxColumn3");
     this.dataGridViewTextBoxColumn3.set_ReadOnly(true);
     this.dataGridViewTextBoxColumn3.set_Resizable(System.Windows.Forms.DataGridViewTriState.True);
     this.dataGridViewTextBoxColumn3.set_Visible(false);
     this.dataGridViewTextBoxColumn3.set_Width(300);
     this.dataGridViewComboBoxColumn2.set_DataPropertyName("fasetItemId");
     this.dataGridViewComboBoxColumn2.set_DisplayStyle(System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox);
     this.dataGridViewComboBoxColumn2.set_HeaderText("Column1");
     this.dataGridViewComboBoxColumn2.Items.AddRange((object[]) new object[] { "12", "45", "78" });
     this.dataGridViewComboBoxColumn2.set_Name("dataGridViewComboBoxColumn2");
     this.dataGridViewComboBoxColumn2.set_ReadOnly(true);
     this.dataGridViewComboBoxColumn2.set_Resizable(System.Windows.Forms.DataGridViewTriState.True);
     this.dataGridViewComboBoxColumn2.set_SortMode(System.Windows.Forms.DataGridViewColumnSortMode.Automatic);
     this.dataGridViewComboBoxColumn2.set_Visible(false);
     this.dataGridViewComboBoxColumn2.set_Width(300);
     base.set_AutoScaleDimensions(new System.Drawing.SizeF(6f, 13f));
     base.set_AutoScaleMode(System.Windows.Forms.AutoScaleMode.Font);
     base.Controls.Add(this.panel2);
     base.Controls.Add(this.panel1);
     base.Controls.Add(this.panel3);
     base.set_Name("HouseIngenerTableView");
     base.set_Size(new System.Drawing.Size(0x2b8, 0x1a5));
     base.add_VisibleChanged(new System.EventHandler(this.HouseIngenerTableView_VisibleChanged));
     this.panel1.ResumeLayout(false);
     this.dgwHousePropertys.EndInit();
     this.bsHousePropertys.EndInit();
     this.bsFasetItems.EndInit();
     this.panel2.ResumeLayout(false);
     base.ResumeLayout(false);
 }
Ejemplo n.º 2
0
 private void InitializeComponent()
 {
     this.components = new Container();
     this.bSaveChange = new System.Windows.Forms.Button();
     this.bsApartmentTypeAddress = new System.Windows.Forms.BindingSource(this.components);
     this.bCancel = new System.Windows.Forms.Button();
     this.apartmentCanonicalTypeView = new ApartmentCanonicalTypeView();
     this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewComboBoxColumn1 = new System.Windows.Forms.DataGridViewComboBoxColumn();
     this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     this.bsApartmentTypeAddress.BeginInit();
     base.SuspendLayout();
     this.bSaveChange.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.bSaveChange.set_Location(new System.Drawing.Point(0x342, 3));
     this.bSaveChange.set_Name("bSaveChange");
     this.bSaveChange.set_Size(new System.Drawing.Size(0x4b, 0x17));
     this.bSaveChange.set_TabIndex(7);
     this.bSaveChange.set_Text("Сохранить");
     this.bSaveChange.set_UseVisualStyleBackColor(true);
     this.bSaveChange.add_Click(new System.EventHandler(this.bSaveChange_Click));
     this.bsApartmentTypeAddress.set_DataSource(typeof(ApartmentTypeAddress));
     this.bCancel.set_Anchor(System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top);
     this.bCancel.set_Location(new System.Drawing.Point(0x394, 3));
     this.bCancel.set_Name("bCancel");
     this.bCancel.set_Size(new System.Drawing.Size(0x4b, 0x17));
     this.bCancel.set_TabIndex(8);
     this.bCancel.set_Text("Отмена");
     this.bCancel.set_UseVisualStyleBackColor(true);
     this.bCancel.add_Click(new System.EventHandler(this.bCancel_Click));
     this.apartmentCanonicalTypeView.set_Dock(System.Windows.Forms.DockStyle.Fill);
     this.apartmentCanonicalTypeView.set_Location(new System.Drawing.Point(0, 0));
     this.apartmentCanonicalTypeView.set_Name("apartmentCanonicalTypeView");
     this.apartmentCanonicalTypeView.set_Size(new System.Drawing.Size(0x3ea, 0x17d));
     this.apartmentCanonicalTypeView.set_TabIndex(6);
     this.dataGridViewTextBoxColumn1.set_DataPropertyName("AdrName");
     this.dataGridViewTextBoxColumn1.set_HeaderText("Адрес");
     this.dataGridViewTextBoxColumn1.set_Name("dataGridViewTextBoxColumn1");
     this.dataGridViewTextBoxColumn1.set_Width(200);
     this.dataGridViewTextBoxColumn2.set_DataPropertyName("FasetItemName");
     this.dataGridViewTextBoxColumn2.set_HeaderText("последнее благоустройство");
     this.dataGridViewTextBoxColumn2.set_Name("dataGridViewTextBoxColumn2");
     this.dataGridViewTextBoxColumn2.set_Width(250);
     this.dataGridViewTextBoxColumn3.set_DataPropertyName("FromDate");
     this.dataGridViewTextBoxColumn3.set_HeaderText("Дата последнего благоустройства");
     this.dataGridViewTextBoxColumn3.set_Name("dataGridViewTextBoxColumn3");
     this.dataGridViewTextBoxColumn4.set_DataPropertyName("AdrName");
     this.dataGridViewTextBoxColumn4.set_HeaderText("Дата нового благоустройства");
     this.dataGridViewTextBoxColumn4.set_Name("dataGridViewTextBoxColumn4");
     this.dataGridViewComboBoxColumn1.set_DataPropertyName("SelectCanonicalTypeId");
     this.dataGridViewComboBoxColumn1.set_DisplayStyle(System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox);
     this.dataGridViewComboBoxColumn1.set_HeaderText("Новое благойстройство");
     this.dataGridViewComboBoxColumn1.set_Name("dataGridViewComboBoxColumn1");
     this.dataGridViewComboBoxColumn1.set_Width(250);
     this.dataGridViewTextBoxColumn5.set_DataPropertyName("Id");
     this.dataGridViewTextBoxColumn5.set_HeaderText("Id");
     this.dataGridViewTextBoxColumn5.set_Name("dataGridViewTextBoxColumn5");
     this.dataGridViewTextBoxColumn5.set_Visible(false);
     this.dataGridViewTextBoxColumn6.set_DataPropertyName("FasetName");
     this.dataGridViewTextBoxColumn6.set_HeaderText("FasetName");
     this.dataGridViewTextBoxColumn6.set_Name("dataGridViewTextBoxColumn6");
     this.dataGridViewTextBoxColumn6.set_Visible(false);
     this.dataGridViewTextBoxColumn7.set_DataPropertyName("FasetItemId");
     this.dataGridViewTextBoxColumn7.set_HeaderText("FasetItemId");
     this.dataGridViewTextBoxColumn7.set_Name("dataGridViewTextBoxColumn7");
     this.dataGridViewTextBoxColumn7.set_Visible(false);
     this.dataGridViewTextBoxColumn8.set_DataPropertyName("ApartmentId");
     this.dataGridViewTextBoxColumn8.set_HeaderText("ApartmentId");
     this.dataGridViewTextBoxColumn8.set_Name("dataGridViewTextBoxColumn8");
     this.dataGridViewTextBoxColumn8.set_Visible(false);
     this.dataGridViewTextBoxColumn9.set_DataPropertyName("ApartmentNumber");
     this.dataGridViewTextBoxColumn9.set_HeaderText("ApartmentNumber");
     this.dataGridViewTextBoxColumn9.set_Name("dataGridViewTextBoxColumn9");
     this.dataGridViewTextBoxColumn9.set_Visible(false);
     this.dataGridViewTextBoxColumn10.set_DataPropertyName("FasetId");
     this.dataGridViewTextBoxColumn10.set_HeaderText("FasetId");
     this.dataGridViewTextBoxColumn10.set_Name("dataGridViewTextBoxColumn10");
     this.dataGridViewTextBoxColumn10.set_Visible(false);
     base.set_AutoScaleDimensions(new System.Drawing.SizeF(6f, 13f));
     base.set_AutoScaleMode(System.Windows.Forms.AutoScaleMode.Font);
     base.set_ClientSize(new System.Drawing.Size(0x3ea, 0x17d));
     base.Controls.Add(this.bCancel);
     base.Controls.Add(this.bSaveChange);
     base.Controls.Add(this.apartmentCanonicalTypeView);
     base.set_Name("HouseApartmentTypeForm");
     base.set_StartPosition(System.Windows.Forms.FormStartPosition.CenterParent);
     this.set_Text("Тип благоустройства на квартирах выбранного дома");
     base.add_FormClosing(new System.Windows.Forms.FormClosingEventHandler(this.HouseApartmentTypeForm_FormClosing));
     base.add_Load(new System.EventHandler(this.HouseApartmentTypeForm_Load));
     this.bsApartmentTypeAddress.EndInit();
     base.ResumeLayout(false);
 }