Правочка

This commit is contained in:
Максим Яковлев 2024-04-20 14:01:58 +04:00
parent 3df5dcd274
commit 5e2e5c55de
2 changed files with 18 additions and 0 deletions

View File

@ -30,6 +30,7 @@
{
dataGridView = new DataGridView();
buttonDel = new Button();
buttonRef = new Button();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout();
//
@ -59,11 +60,22 @@
buttonDel.UseVisualStyleBackColor = true;
buttonDel.Click += buttonDel_Click;
//
// buttonRef
//
buttonRef.Location = new Point(624, 68);
buttonRef.Name = "buttonRef";
buttonRef.Size = new Size(152, 36);
buttonRef.TabIndex = 3;
buttonRef.Text = "Обновить";
buttonRef.UseVisualStyleBackColor = true;
buttonRef.Click += buttonRef_Click;
//
// FormClients
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(785, 450);
Controls.Add(buttonRef);
Controls.Add(buttonDel);
Controls.Add(dataGridView);
Name = "FormClients";
@ -77,5 +89,6 @@
private DataGridView dataGridView;
private Button buttonDel;
private Button buttonRef;
}
}

View File

@ -74,5 +74,10 @@ namespace CarRepairShopView
}
}
}
private void buttonRef_Click(object sender, EventArgs e)
{
LoadData();
}
}
}