From 23ef6fc7a0d76a50021e6985343dd1810c08e948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D0=B8=D0=BD=D0=B0=20=D0=A7=D1=83=D0=B1?= =?UTF-8?q?=D1=8B=D0=BA=D0=B8=D0=BD=D0=B0?= Date: Tue, 26 Mar 2024 19:58:34 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=80=D0=BE=D0=B4=D0=B5=20=D0=B3=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=20=D0=BB=D0=B0=D0=B1=D0=B0=201?= =?UTF-8?q?=20=D1=85=D0=B0=D1=80=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Confectionery/ConfectioneryView/FormSupply.Designer.cs | 3 +++ Confectionery/ConfectioneryView/FormSupply.cs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Confectionery/ConfectioneryView/FormSupply.Designer.cs b/Confectionery/ConfectioneryView/FormSupply.Designer.cs index 040d631..e8c598d 100644 --- a/Confectionery/ConfectioneryView/FormSupply.Designer.cs +++ b/Confectionery/ConfectioneryView/FormSupply.Designer.cs @@ -47,6 +47,7 @@ this.buttonCancel.TabIndex = 19; this.buttonCancel.Text = "Отмена"; this.buttonCancel.UseVisualStyleBackColor = true; + this.buttonCancel.Click += new System.EventHandler(this.ButtonCancel_Click); // // buttonSave // @@ -57,6 +58,7 @@ this.buttonSave.TabIndex = 18; this.buttonSave.Text = "Сохранить"; this.buttonSave.UseVisualStyleBackColor = true; + this.buttonSave.Click += new System.EventHandler(this.ButtonSave_Click); // // textBoxCount // @@ -131,6 +133,7 @@ this.Controls.Add(this.labelShop); this.Name = "FormSupply"; this.Text = "Пополнение магазина"; + this.Load += new System.EventHandler(this.FormSupply_Load); this.ResumeLayout(false); this.PerformLayout(); diff --git a/Confectionery/ConfectioneryView/FormSupply.cs b/Confectionery/ConfectioneryView/FormSupply.cs index 912a410..ad01fbb 100644 --- a/Confectionery/ConfectioneryView/FormSupply.cs +++ b/Confectionery/ConfectioneryView/FormSupply.cs @@ -30,7 +30,7 @@ namespace ConfectioneryView private void FormSupply_Load(object sender, EventArgs e) { - _logger.LogInformation("Ice creams loading"); + _logger.LogInformation("Pastries loading"); try { var list = _logicPastry.ReadList(null); @@ -44,7 +44,7 @@ namespace ConfectioneryView } catch (Exception ex) { - _logger.LogError(ex, "Ice creams loading error"); + _logger.LogError(ex, "Pastries loading error"); MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } _logger.LogInformation("Shops loading");