some minor fixes

This commit is contained in:
Zakharov_Rostislav 2024-02-14 16:36:39 +04:00
parent 1c79247c26
commit 96dd6c0089

View File

@ -19,7 +19,7 @@ namespace BlacksmithWorkshop
private readonly List<ManufactureViewModel>? _manufactureList;
private readonly List<ShopViewModel>? _shopsList;
IShopLogic _shopLogic;
IManufactureLogic _ManufactureLogic;
IManufactureLogic _manufactureLogic;
public int ShopId
{
get
@ -69,7 +69,7 @@ namespace BlacksmithWorkshop
{
InitializeComponent();
_shopLogic = shopLogic;
_ManufactureLogic = ManufactureLogic;
_manufactureLogic = ManufactureLogic;
_manufactureList = ManufactureLogic.ReadList(null);
_shopsList = shopLogic.ReadList(null);
if (_manufactureList != null)
@ -112,7 +112,7 @@ namespace BlacksmithWorkshop
int count = Convert.ToInt32(CountTextBox.Text);
bool res = _shopLogic.ReplenishManufactures(
new ShopSearchModel() { Id = Convert.ToInt32(ShopComboBox.SelectedValue) },
_ManufactureLogic.ReadElement(new() { Id = Convert.ToInt32(ManufactureComboBox.SelectedValue) }),
_manufactureLogic.ReadElement(new() { Id = Convert.ToInt32(ManufactureComboBox.SelectedValue) }),
count
);
if (!res)