ПИбд-22 Боровков М В 5 лабораторная работа #6

Closed
bekodeg wants to merge 44 commits from labWork5 into labWork4
Showing only changes of commit 1d9f02b91f - Show all commits

View File

@ -27,8 +27,8 @@ namespace SushiBarFileImplement
private DataFileSingleton()
{
Components = LoadData(ComponentFileName, "Component", x => Component.Create(x)!)!;
Sushis = LoadData(SushiFileName, "Sushi", x => Sushi.Create(x)!)!;
Orders = LoadData(OrderFileName, "Order", x => Order.Create(x)!)!;
Sushis = LoadData(SushiFileName, "Product", x => Sushi.Create(x)!)!;
Orders = new List<Order>();
}
private static List<T>? LoadData<T>(string filename, string xmlNodeName, Func<XElement, T> selectFunction)
{