Presnyakova V.V Lab_7 #16

Closed
Victoria_Presnyakova wants to merge 8 commits from Lab_7 into Lab_6
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 3e84bde81f - Show all commits

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;
}
}