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); } }