PIbd-21 Bakalskaya E.D. LabWork07 Base #9

Closed
ekallin wants to merge 7 commits from LabWork07 into LabWork06
2 changed files with 15 additions and 4 deletions
Showing only changes of commit 8457a1d8dc - Show all commits

View File

@ -1,8 +1,9 @@
using ElectricLocomotive;
using Microsoft.Extensions.Logging;
//using ElectricLocomotive;
using ProjectElectricLocomotive.DrawingObjects;
using ProjectElectricLocomotive.Exceptions;
using ProjectElectricLocomotive.Generics;
using ProjectElectricLocomotive.MovementStrategy;
/*using ProjectElectricLocomotive.MovementStrategy;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@ -10,7 +11,7 @@ using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading.Tasks;*/
using System.Windows.Forms;
@ -19,10 +20,15 @@ namespace ProjectElectricLocomotive
public partial class FormLocomotiveCollections : Form
{
private readonly LocomotiveGenericStorage _storage;
public FormLocomotiveCollections()
/// <summary>
/// Логер
/// </summary>
private readonly ILogger _logger;
public FormLocomotiveCollections(ILogger<FormLocomotiveCollections> logger)
{
InitializeComponent();
_storage = new LocomotiveGenericStorage(pictureBoxCollections.Width, pictureBoxCollections.Height);
_logger = logger;
}
/// <summary>

View File

@ -8,6 +8,11 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.5" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>