PIbd-22. Fedorenko G.Y. Lab Work 1 BASE #1

Closed
fedorenko wants to merge 4 commits from LabWork01 into main
2 changed files with 2 additions and 11 deletions
Showing only changes of commit 7b3c8b5b25 - Show all commits

View File

@ -21,14 +21,6 @@ namespace CarpentryWorkshopView
private void FormCreateOrder_Load(object sender, EventArgs e)
{
_logger.LogInformation("Загрузка изделий для заказа");
//List<WoodViewModel> 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);

View File

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