Проект готов.

This commit is contained in:
Андрей Байгулов 2024-05-07 21:14:39 +04:00
parent 3f9ba17003
commit 51230648ff
2 changed files with 48 additions and 43 deletions

View File

@ -53,6 +53,7 @@
buttonSave.TabIndex = 1;
buttonSave.Text = "Сохранить";
buttonSave.UseVisualStyleBackColor = true;
buttonSave.Click += this.ButtonSave_Click;
//
// textBoxName
//
@ -63,7 +64,7 @@
//
// textBoxCost
//
textBoxCost.Location = new Point(89, 80);
textBoxCost.Location = new Point(89, 59);
textBoxCost.Name = "textBoxCost";
textBoxCost.Size = new Size(218, 23);
textBoxCost.TabIndex = 3;
@ -80,7 +81,7 @@
// labelCost
//
labelCost.AutoSize = true;
labelCost.Location = new Point(12, 80);
labelCost.Location = new Point(12, 62);
labelCost.Name = "labelCost";
labelCost.Size = new Size(38, 15);
labelCost.TabIndex = 5;

View File

@ -28,49 +28,53 @@
/// </summary>
private void InitializeComponent()
{
button1 = new Button();
button2 = new Button();
button3 = new Button();
button4 = new Button();
ButtonAdd = new Button();
ButtonUpd = new Button();
ButtonDel = new Button();
ButtonRef = new Button();
dataGridView = new DataGridView();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout();
//
// button1
// ButtonAdd
//
button1.Location = new Point(430, 24);
button1.Name = "button1";
button1.Size = new Size(109, 68);
button1.TabIndex = 0;
button1.Text = "button1";
button1.UseVisualStyleBackColor = true;
ButtonAdd.Location = new Point(430, 24);
ButtonAdd.Name = "ButtonAdd";
ButtonAdd.Size = new Size(109, 68);
ButtonAdd.TabIndex = 0;
ButtonAdd.Text = "Добавить";
ButtonAdd.UseVisualStyleBackColor = true;
ButtonAdd.Click += ButtonAdd_Click;
//
// button2
// ButtonUpd
//
button2.Location = new Point(430, 98);
button2.Name = "button2";
button2.Size = new Size(109, 68);
button2.TabIndex = 1;
button2.Text = "button2";
button2.UseVisualStyleBackColor = true;
ButtonUpd.Location = new Point(430, 98);
ButtonUpd.Name = "ButtonUpd";
ButtonUpd.Size = new Size(109, 68);
ButtonUpd.TabIndex = 1;
ButtonUpd.Text = "Изменить";
ButtonUpd.UseVisualStyleBackColor = true;
ButtonUpd.Click += ButtonUpd_Click;
//
// button3
// ButtonDel
//
button3.Location = new Point(430, 172);
button3.Name = "button3";
button3.Size = new Size(109, 68);
button3.TabIndex = 2;
button3.Text = "button3";
button3.UseVisualStyleBackColor = true;
ButtonDel.Location = new Point(430, 172);
ButtonDel.Name = "ButtonDel";
ButtonDel.Size = new Size(109, 68);
ButtonDel.TabIndex = 2;
ButtonDel.Text = "Удалить";
ButtonDel.UseVisualStyleBackColor = true;
ButtonDel.Click += ButtonDel_Click;
//
// button4
// ButtonRef
//
button4.Location = new Point(430, 246);
button4.Name = "button4";
button4.Size = new Size(109, 68);
button4.TabIndex = 3;
button4.Text = "button4";
button4.UseVisualStyleBackColor = true;
ButtonRef.Location = new Point(430, 246);
ButtonRef.Name = "ButtonRef";
ButtonRef.Size = new Size(109, 68);
ButtonRef.TabIndex = 3;
ButtonRef.Text = "Обновить";
ButtonRef.UseVisualStyleBackColor = true;
ButtonRef.Click += ButtonRef_Click;
//
// dataGridView
//
@ -86,12 +90,12 @@
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(551, 450);
Controls.Add(dataGridView);
Controls.Add(button4);
Controls.Add(button3);
Controls.Add(button2);
Controls.Add(button1);
Controls.Add(ButtonRef);
Controls.Add(ButtonDel);
Controls.Add(ButtonUpd);
Controls.Add(ButtonAdd);
Name = "FormComponents";
Text = "FormComponents";
Text = "Компоненты";
Load += FormComponents_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false);
@ -99,10 +103,10 @@
#endregion
private Button button1;
private Button button2;
private Button button3;
private Button button4;
private Button ButtonAdd;
private Button ButtonUpd;
private Button ButtonDel;
private Button ButtonRef;
private DataGridView dataGridView;
}
}