From 4dec93f91808c6670676e9a81b0df5a20e8e131c Mon Sep 17 00:00:00 2001 From: foxkerik6 Date: Thu, 1 Dec 2022 00:00:48 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B5=D1=89=D1=91=20=D0=BF=D0=BE=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Stormtrooper/Stormtrooper/FormMapWithSetAirplane.cs | 4 ++-- Stormtrooper/Stormtrooper/MapWithSetAirplaneGeneric.cs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Stormtrooper/Stormtrooper/FormMapWithSetAirplane.cs b/Stormtrooper/Stormtrooper/FormMapWithSetAirplane.cs index e385ff9..15524e4 100644 --- a/Stormtrooper/Stormtrooper/FormMapWithSetAirplane.cs +++ b/Stormtrooper/Stormtrooper/FormMapWithSetAirplane.cs @@ -15,21 +15,21 @@ namespace Stormtrooper { public partial class FormMapWithSetAirplane : Form { + private readonly ILogger _logger; private readonly Dictionary _mapsDict = new() { {"Простая карта", new SimpleMap()}, {"Опасная карта", new DangerMap()}, {"Облачная карта", new CloudMap()} }; - private readonly ILogger _logger; /// /// Объект от коллекции карт /// private readonly MapCollection _mapCollection; public FormMapWithSetAirplane(ILogger logger) { - InitializeComponent(); _logger = logger; + InitializeComponent(); openFileDialog.Filter = "Text files(*.txt)|*.txt"; saveFileDialog.Filter = "Text files(*.txt)|*.txt"; _mapCollection = new MapCollection(pictureBox.Width, pictureBox.Height); diff --git a/Stormtrooper/Stormtrooper/MapWithSetAirplaneGeneric.cs b/Stormtrooper/Stormtrooper/MapWithSetAirplaneGeneric.cs index 89a9b65..d55c86d 100644 --- a/Stormtrooper/Stormtrooper/MapWithSetAirplaneGeneric.cs +++ b/Stormtrooper/Stormtrooper/MapWithSetAirplaneGeneric.cs @@ -185,8 +185,6 @@ namespace Stormtrooper int currentWidth = width - 1; int currentHeight = 0; - - int i = 0; foreach (var air in _setAirs.GetAirs()) {