This commit is contained in:
VictoriaPresnyakova 2022-12-05 10:14:19 +04:00
parent 0091fe4a92
commit 3e84bde81f
2 changed files with 3 additions and 2 deletions

View File

@ -309,9 +309,9 @@ namespace Catamaran
try try
{ {
_mapsCollection.LoadData(openFileDialog.FileName); _mapsCollection.LoadData(openFileDialog.FileName);
ReloadMaps();
MessageBox.Show("Открытие прошло успешно", "Результат", MessageBox.Show("Открытие прошло успешно", "Результат",
MessageBoxButtons.OK, MessageBoxIcon.Information); MessageBoxButtons.OK, MessageBoxIcon.Information);
ReloadMaps();
_logger.LogInformation($"Загрузка данных"); _logger.LogInformation($"Загрузка данных");
} }

View File

@ -40,11 +40,12 @@ namespace Catamaran
public int Insert(T boat) public int Insert(T boat)
{ {
for (int i = 0; i < _maxCount; i++) for (int i = 0; i < _maxCount; i++)
{ {
if (i == Count) if (i == Count)
{ {
_places.Insert(i, boat); _places.Insert(i,boat);
return i; return i;
} }
} }