Правочка

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(); dataGridView = new DataGridView();
buttonDel = new Button(); buttonDel = new Button();
buttonRef = new Button();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout(); SuspendLayout();
// //
@ -59,11 +60,22 @@
buttonDel.UseVisualStyleBackColor = true; buttonDel.UseVisualStyleBackColor = true;
buttonDel.Click += buttonDel_Click; 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 // FormClients
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(785, 450); ClientSize = new Size(785, 450);
Controls.Add(buttonRef);
Controls.Add(buttonDel); Controls.Add(buttonDel);
Controls.Add(dataGridView); Controls.Add(dataGridView);
Name = "FormClients"; Name = "FormClients";
@ -77,5 +89,6 @@
private DataGridView dataGridView; private DataGridView dataGridView;
private Button buttonDel; private Button buttonDel;
private Button buttonRef;
} }
} }

View File

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