Небольшой дебаг сохранения и пополнения магазина

This commit is contained in:
Данила Мочалов 2023-03-01 18:13:57 +04:00
parent f20984c4ba
commit 94dde9c5d9
2 changed files with 3 additions and 1 deletions

View File

@ -50,6 +50,7 @@ namespace LawFirmView
textBoxName.Text = view.Name; textBoxName.Text = view.Name;
textBoxAddress.Text = view.Adress; textBoxAddress.Text = view.Adress;
_shopDocuments = view.ShopDocuments ?? new Dictionary<int, (IDocumentModel, int)>(); _shopDocuments = view.ShopDocuments ?? new Dictionary<int, (IDocumentModel, int)>();
textBoxMaxCountDocs.Text = view.MaxCountDocuments.ToString();
LoadData(); LoadData();
} }
} }

View File

@ -105,7 +105,8 @@ namespace LawFirmBusinessLogic.BusinessLogics
Name = shopElement.Name, Name = shopElement.Name,
Adress = shopElement.Adress, Adress = shopElement.Adress,
OpeningDate = shopElement.OpeningDate, OpeningDate = shopElement.OpeningDate,
ShopDocuments = shopElement.ShopDocuments ShopDocuments = shopElement.ShopDocuments,
MaxCountDocuments = shopElement.MaxCountDocuments
}); });
} }
else else