ещё поправки
This commit is contained in:
parent
30ad241b99
commit
4dec93f918
@ -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);
|
||||||
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user