downloading packages, so much comments

This commit is contained in:
ekallin 2023-11-20 14:54:32 +04:00
parent 777185f03b
commit 8457a1d8dc
2 changed files with 15 additions and 4 deletions

View File

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

View File

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