Удаление доп. задания 4 лабораторной.

This commit is contained in:
ksenianeva 2022-11-15 12:55:13 +04:00
parent 1c5ea38fdf
commit 740b975dc7

View File

@ -46,9 +46,9 @@ namespace ContainerShip
int index = listBoxMaps.SelectedIndex;
listBoxMaps.Items.Clear();
foreach (string key in _mapsCollection.Keys)
for (int i = 0; i < _mapsCollection.Keys.Count; i++)
{
listBoxMaps.Items.Add(key);
listBoxMaps.Items.Add(_mapsCollection.Keys[i]);
}
if (listBoxMaps.Items.Count > 0 && (index == -1 || index >= listBoxMaps.Items.Count))