Full_7
This commit is contained in:
parent
0091fe4a92
commit
3e84bde81f
@ -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($"Загрузка данных");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user