ещё поправки

This commit is contained in:
foxkerik6 2022-12-01 00:00:48 +04:00
parent 30ad241b99
commit 4dec93f918
2 changed files with 2 additions and 4 deletions

View File

@ -15,21 +15,21 @@ namespace Stormtrooper
{ {
public partial class FormMapWithSetAirplane : Form public partial class FormMapWithSetAirplane : Form
{ {
private readonly ILogger _logger;
private readonly Dictionary<string, AbstractMap> _mapsDict = new() private readonly Dictionary<string, AbstractMap> _mapsDict = new()
{ {
{"Простая карта", new SimpleMap()}, {"Простая карта", new SimpleMap()},
{"Опасная карта", new DangerMap()}, {"Опасная карта", new DangerMap()},
{"Облачная карта", new CloudMap()} {"Облачная карта", new CloudMap()}
}; };
private readonly ILogger _logger;
/// <summary> /// <summary>
/// Объект от коллекции карт /// Объект от коллекции карт
/// </summary> /// </summary>
private readonly MapCollection _mapCollection; private readonly MapCollection _mapCollection;
public FormMapWithSetAirplane(ILogger<FormMapWithSetAirplane> logger) public FormMapWithSetAirplane(ILogger<FormMapWithSetAirplane> logger)
{ {
InitializeComponent();
_logger = logger; _logger = logger;
InitializeComponent();
openFileDialog.Filter = "Text files(*.txt)|*.txt"; openFileDialog.Filter = "Text files(*.txt)|*.txt";
saveFileDialog.Filter = "Text files(*.txt)|*.txt"; saveFileDialog.Filter = "Text files(*.txt)|*.txt";
_mapCollection = new MapCollection(pictureBox.Width, pictureBox.Height); _mapCollection = new MapCollection(pictureBox.Width, pictureBox.Height);

View File

@ -185,8 +185,6 @@ namespace Stormtrooper
int currentWidth = width - 1; int currentWidth = width - 1;
int currentHeight = 0; int currentHeight = 0;
int i = 0;
foreach (var air in _setAirs.GetAirs()) foreach (var air in _setAirs.GetAirs())
{ {