Готов4

This commit is contained in:
Yunusov_Niyaz 2024-02-12 23:51:06 +04:00
parent 354ace7ab0
commit 64f741e671
2 changed files with 27 additions and 27 deletions

View File

@ -36,13 +36,13 @@
buttonUpdate = new Button(); buttonUpdate = new Button();
buttonAdd = new Button(); buttonAdd = new Button();
dataGridViewComponents = new DataGridView(); dataGridViewComponents = new DataGridView();
id = new DataGridViewTextBoxColumn();
ComponentNameColumn = new DataGridViewTextBoxColumn();
CountColumn = new DataGridViewTextBoxColumn();
textBoxName = new TextBox(); textBoxName = new TextBox();
textBoxCost = new TextBox(); textBoxCost = new TextBox();
buttonSave = new Button(); buttonSave = new Button();
buttonCancel = new Button(); buttonCancel = new Button();
id = new DataGridViewTextBoxColumn();
ComponentNameColumn = new DataGridViewTextBoxColumn();
CountColumn = new DataGridViewTextBoxColumn();
groupBoxComponents.SuspendLayout(); groupBoxComponents.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dataGridViewComponents).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridViewComponents).BeginInit();
SuspendLayout(); SuspendLayout();
@ -131,6 +131,28 @@
dataGridViewComponents.Size = new Size(573, 274); dataGridViewComponents.Size = new Size(573, 274);
dataGridViewComponents.TabIndex = 0; dataGridViewComponents.TabIndex = 0;
// //
// id
//
id.HeaderText = "";
id.MinimumWidth = 6;
id.Name = "id";
id.Visible = false;
id.Width = 125;
//
// ComponentNameColumn
//
ComponentNameColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
ComponentNameColumn.HeaderText = "Компонент";
ComponentNameColumn.MinimumWidth = 320;
ComponentNameColumn.Name = "ComponentNameColumn";
//
// CountColumn
//
CountColumn.HeaderText = "Количество";
CountColumn.MinimumWidth = 6;
CountColumn.Name = "CountColumn";
CountColumn.Width = 200;
//
// textBoxName // textBoxName
// //
textBoxName.Location = new Point(117, 18); textBoxName.Location = new Point(117, 18);
@ -166,28 +188,6 @@
buttonCancel.UseVisualStyleBackColor = true; buttonCancel.UseVisualStyleBackColor = true;
buttonCancel.Click += ButtonCancel_Click; buttonCancel.Click += ButtonCancel_Click;
// //
// id
//
id.HeaderText = "";
id.MinimumWidth = 6;
id.Name = "id";
id.Visible = false;
id.Width = 125;
//
// ComponentNameColumn
//
ComponentNameColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
ComponentNameColumn.HeaderText = "Компонент";
ComponentNameColumn.MinimumWidth = 320;
ComponentNameColumn.Name = "ComponentNameColumn";
//
// CountColumn
//
CountColumn.HeaderText = "Количество";
CountColumn.MinimumWidth = 6;
CountColumn.Name = "CountColumn";
CountColumn.Width = 200;
//
// FormRepair // FormRepair
// //
AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleDimensions = new SizeF(8F, 20F);
@ -202,7 +202,7 @@
Controls.Add(labelName); Controls.Add(labelName);
Name = "FormRepair"; Name = "FormRepair";
StartPosition = FormStartPosition.CenterScreen; StartPosition = FormStartPosition.CenterScreen;
Text = "Изделие"; Text = "Ремонт";
Load += FormRepair_Load; Load += FormRepair_Load;
groupBoxComponents.ResumeLayout(false); groupBoxComponents.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dataGridViewComponents).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridViewComponents).EndInit();

View File

@ -103,7 +103,7 @@
Controls.Add(labelComponent); Controls.Add(labelComponent);
Name = "FormRepairComponent"; Name = "FormRepairComponent";
StartPosition = FormStartPosition.CenterScreen; StartPosition = FormStartPosition.CenterScreen;
Text = "Компонент изделия"; Text = "Компонент ремонта";
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
} }