From 8457a1d8dc0a6369256021c28f88103ab5455bc7 Mon Sep 17 00:00:00 2001 From: ekallin Date: Mon, 20 Nov 2023 14:54:32 +0400 Subject: [PATCH] downloading packages, so much comments --- .../FormLocomotiveCollections.cs | 14 ++++++++++---- .../ProjectElectricLocomotive.csproj | 5 +++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.cs b/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.cs index dd4a7ca..587b075 100644 --- a/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.cs +++ b/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.cs @@ -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() + /// + /// Логер + /// + private readonly ILogger _logger; + public FormLocomotiveCollections(ILogger logger) { InitializeComponent(); _storage = new LocomotiveGenericStorage(pictureBoxCollections.Width, pictureBoxCollections.Height); + _logger = logger; } /// diff --git a/ProjectElectricLocomotive/ProjectElectricLocomotive/ProjectElectricLocomotive.csproj b/ProjectElectricLocomotive/ProjectElectricLocomotive/ProjectElectricLocomotive.csproj index 13ee123..eb2b961 100644 --- a/ProjectElectricLocomotive/ProjectElectricLocomotive/ProjectElectricLocomotive.csproj +++ b/ProjectElectricLocomotive/ProjectElectricLocomotive/ProjectElectricLocomotive.csproj @@ -8,6 +8,11 @@ enable + + + + + True