From 752d9b58ef82e97c329336a6bfcce18e369a2d36 Mon Sep 17 00:00:00 2001 From: Danila_Mochalov Date: Sat, 25 Mar 2023 20:09:56 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=20=D0=BA=D0=BB?= =?UTF-8?q?=D0=B8=D0=B5=D0=BD=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LawFirm/LawFirm/FormClients.Designer.cs | 13 +++++++++++++ LawFirm/LawFirm/FormClients.cs | 5 +++++ 2 files changed, 18 insertions(+) diff --git a/LawFirm/LawFirm/FormClients.Designer.cs b/LawFirm/LawFirm/FormClients.Designer.cs index 4493397..4a8b5c2 100644 --- a/LawFirm/LawFirm/FormClients.Designer.cs +++ b/LawFirm/LawFirm/FormClients.Designer.cs @@ -30,6 +30,7 @@ { this.dataGridView = new System.Windows.Forms.DataGridView(); this.buttonDelete = new System.Windows.Forms.Button(); + this.buttonUpdate = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); this.SuspendLayout(); // @@ -53,11 +54,22 @@ this.buttonDelete.UseVisualStyleBackColor = true; this.buttonDelete.Click += new System.EventHandler(this.buttonDelete_Click); // + // buttonUpdate + // + this.buttonUpdate.Location = new System.Drawing.Point(228, 12); + this.buttonUpdate.Name = "buttonUpdate"; + this.buttonUpdate.Size = new System.Drawing.Size(94, 29); + this.buttonUpdate.TabIndex = 2; + this.buttonUpdate.Text = "Обновить"; + this.buttonUpdate.UseVisualStyleBackColor = true; + this.buttonUpdate.Click += new System.EventHandler(this.buttonUpdate_Click); + // // FormClients // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(635, 450); + this.Controls.Add(this.buttonUpdate); this.Controls.Add(this.buttonDelete); this.Controls.Add(this.dataGridView); this.Name = "FormClients"; @@ -72,5 +84,6 @@ private DataGridView dataGridView; private Button buttonDelete; + private Button buttonUpdate; } } \ No newline at end of file diff --git a/LawFirm/LawFirm/FormClients.cs b/LawFirm/LawFirm/FormClients.cs index 9baab71..1f7c892 100644 --- a/LawFirm/LawFirm/FormClients.cs +++ b/LawFirm/LawFirm/FormClients.cs @@ -76,5 +76,10 @@ namespace LawFirmView } } } + + private void buttonUpdate_Click(object sender, EventArgs e) + { + LoadData(); + } } }