From 7b3c8b5b256eee878576cad517f365ba034b63b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=93=D0=B0=D0=BB=D0=B8=D0=BD=D0=B0=20=D0=A4=D0=B5=D0=B4?= =?UTF-8?q?=D0=BE=D1=80=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Thu, 22 Feb 2024 15:14:50 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B2=D0=BE=D1=82=20=D1=82=D0=B5=D0=BF=D0=B5?= =?UTF-8?q?=D1=80=D1=8C=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CarpentryWorkshop/CarpentryWorkshop/FormCreateOrder.cs | 8 -------- CarpentryWorkshop/CarpentryWorkshop/FormMain.cs | 5 ++--- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/CarpentryWorkshop/CarpentryWorkshop/FormCreateOrder.cs b/CarpentryWorkshop/CarpentryWorkshop/FormCreateOrder.cs index 9e8e96c..80d42b5 100644 --- a/CarpentryWorkshop/CarpentryWorkshop/FormCreateOrder.cs +++ b/CarpentryWorkshop/CarpentryWorkshop/FormCreateOrder.cs @@ -21,14 +21,6 @@ namespace CarpentryWorkshopView private void FormCreateOrder_Load(object sender, EventArgs e) { _logger.LogInformation("Загрузка изделий для заказа"); - //List list = _logicW.ReadList(null); - //if (list != null) - //{ - // comboBoxWood.DisplayMember = "WoodName"; - // comboBoxWood.ValueMember = "Id"; - // comboBoxWood.DataSource = list; - // comboBoxWood.SelectedItem = null; - //} try { var list = _logicW.ReadList(null); diff --git a/CarpentryWorkshop/CarpentryWorkshop/FormMain.cs b/CarpentryWorkshop/CarpentryWorkshop/FormMain.cs index 9c3fba9..73d980e 100644 --- a/CarpentryWorkshop/CarpentryWorkshop/FormMain.cs +++ b/CarpentryWorkshop/CarpentryWorkshop/FormMain.cs @@ -23,7 +23,6 @@ namespace CarpentryWorkshopView private void LoadData() { _logger.LogInformation("Загрузка заказов"); - // прописать логику try { var list = _orderLogic.ReadList(null); @@ -34,11 +33,11 @@ namespace CarpentryWorkshopView dataGridView.Columns["WoodName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; } - _logger.LogInformation("Загрузка продуктов"); + _logger.LogInformation("Загрузка изделий"); } catch (Exception ex) { - _logger.LogError(ex, "Ошибка загрузки продуктов"); + _logger.LogError(ex, "Ошибка загрузки изделий"); MessageBox.Show(ex.Message, "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); } }