Agliullov D. A. Lab Work 2 Hard #5

Closed
d.agliullov wants to merge 26 commits from Lab2_Hard into Lab1_Hard
3 changed files with 5 additions and 6 deletions
Showing only changes of commit 9e8a3d4e87 - Show all commits

View File

@ -27,10 +27,8 @@ namespace ConfectioneryFileImplement
private DataFileSingleton()
{
Components = LoadData(ComponentFileName, "Component", x =>
Component.Create(x)!)!;
Pastries = LoadData(PastryFileName, "Pastry", x =>
Pastry.Create(x)!)!;
Components = LoadData(ComponentFileName, "Component", x => Component.Create(x)!)!;
Pastries = LoadData(PastryFileName, "Pastry", x => Pastry.Create(x)!)!;
Orders = LoadData(OrderFileName, "Order", x => Order.Create(x)!)!;
}
private static List<T>? LoadData<T>(string filename, string xmlNodeName, Func<XElement, T> selectFunction)

View File

@ -15,6 +15,7 @@
<ItemGroup>
<ProjectReference Include="..\ConfectionaryBusinessLogic\ConfectioneryBusinessLogic.csproj" />
<ProjectReference Include="..\ConfectionaryFileImplement\ConfectioneryFileImplement.csproj" />
<ProjectReference Include="..\ConfectionaryListImplement\ConfectioneryListImplement.csproj" />
<ProjectReference Include="..\ConfectioneryContracts\ConfectioneryContracts.csproj" />
</ItemGroup>

View File

@ -1,8 +1,8 @@
using ConfectioneryListImplement.Implements;
using ConfectioneryFileImplement.Implements;
using ConfectioneryBusinessLogic.BusinessLogics;
using ConfectioneryContracts.BusinessLogicsContracts;
using ConfectioneryContracts.StoragesContract;
using ConfectioneryListImplement;
using ConfectioneryFileImplement;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using NLog.Extensions.Logging;