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()) {