Мелкий рефакторинг.

This commit is contained in:
Programmist73 2023-03-24 00:37:43 +04:00
parent e89900b24c
commit a2760750d5
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ namespace BlacksmithWorkshop
textBoxAddress.Text = view.Address.ToString();
dateTimePickerDate.Value = view.DateOpen;
numericUpDownCount.Value = view.MaxCountManufactures;
_shopManufactures = view.Manufactures ?? new Dictionary<int, (IManufactureModel, int)>();
_shopManufactures = view.ShopManufactures ?? new Dictionary<int, (IManufactureModel, int)>();
LoadData();
}
}

View File

@ -41,7 +41,7 @@ namespace BlacksmithWorkshop
{
dataGridView.DataSource = list;
dataGridView.Columns["Id"].Visible = false;
dataGridView.Columns["Manufactures"].Visible = false;
dataGridView.Columns["ShopManufactures"].Visible = false;
dataGridView.Columns["ShopName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
}
_logger.LogInformation("Загрузка магазинов");