ещё поправки
This commit is contained in:
parent
30ad241b99
commit
4dec93f918
@ -15,21 +15,21 @@ namespace Stormtrooper
|
||||
{
|
||||
public partial class FormMapWithSetAirplane : Form
|
||||
{
|
||||
private readonly ILogger _logger;
|
||||
private readonly Dictionary<string, AbstractMap> _mapsDict = new()
|
||||
{
|
||||
{"Простая карта", new SimpleMap()},
|
||||
{"Опасная карта", new DangerMap()},
|
||||
{"Облачная карта", new CloudMap()}
|
||||
};
|
||||
private readonly ILogger _logger;
|
||||
/// <summary>
|
||||
/// Объект от коллекции карт
|
||||
/// </summary>
|
||||
private readonly MapCollection _mapCollection;
|
||||
public FormMapWithSetAirplane(ILogger<FormMapWithSetAirplane> logger)
|
||||
{
|
||||
InitializeComponent();
|
||||
_logger = logger;
|
||||
InitializeComponent();
|
||||
openFileDialog.Filter = "Text files(*.txt)|*.txt";
|
||||
saveFileDialog.Filter = "Text files(*.txt)|*.txt";
|
||||
_mapCollection = new MapCollection(pictureBox.Width, pictureBox.Height);
|
||||
|
@ -185,8 +185,6 @@ namespace Stormtrooper
|
||||
|
||||
int currentWidth = width - 1;
|
||||
int currentHeight = 0;
|
||||
|
||||
int i = 0;
|
||||
foreach (var air in _setAirs.GetAirs())
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user