From d23e3cc9f643caf097fa562491cb91fd41118fd3 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: Sat, 20 Apr 2024 16:52:17 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=D0=B1=D0=BE=D0=BB=D1=8C=D1=88?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BB?= =?UTF-8?q?=D0=B0=D0=B1=D0=B0=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Confectionery/ConfectioneryView/FormCreateOrder.cs | 4 ++-- Confectionery/ConfectioneryView/FormPastries.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Confectionery/ConfectioneryView/FormCreateOrder.cs b/Confectionery/ConfectioneryView/FormCreateOrder.cs index a448d9b..b903b1b 100644 --- a/Confectionery/ConfectioneryView/FormCreateOrder.cs +++ b/Confectionery/ConfectioneryView/FormCreateOrder.cs @@ -29,7 +29,7 @@ namespace ConfectioneryView private void FormCreateOrder_Load(object sender, EventArgs e) { - _logger.LogInformation("Loading ice cream for order"); + _logger.LogInformation("Loading pastry for order"); try { var pastryList = _logicP.ReadList(null); @@ -43,7 +43,7 @@ namespace ConfectioneryView } catch (Exception ex) { - _logger.LogError(ex, "Error during loading ice cream for order"); + _logger.LogError(ex, "Error during loading pastry for order"); MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } } diff --git a/Confectionery/ConfectioneryView/FormPastries.cs b/Confectionery/ConfectioneryView/FormPastries.cs index 7932f5b..508f6cc 100644 --- a/Confectionery/ConfectioneryView/FormPastries.cs +++ b/Confectionery/ConfectioneryView/FormPastries.cs @@ -86,7 +86,7 @@ namespace ConfectioneryView if (MessageBox.Show("Удалить запись?", "Вопрос", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { int id = Convert.ToInt32(dataGridView.SelectedRows[0].Cells["Id"].Value); - _logger.LogInformation("Deletion of ice cream"); + _logger.LogInformation("Deletion of pastry"); try { if (!_logic.Delete(new PastryBindingModel { Id = id })) @@ -97,7 +97,7 @@ namespace ConfectioneryView } catch (Exception ex) { - _logger.LogError(ex, "Ice cream deletion error"); + _logger.LogError(ex, "Pastry deletion error"); MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }