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
{
_mapsCollection.LoadData(openFileDialog.FileName);
ReloadMaps();
MessageBox.Show("Открытие прошло успешно", "Результат",
MessageBoxButtons.OK, MessageBoxIcon.Information);
ReloadMaps();
_logger.LogInformation($"Загрузка данных");
}

View File

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