Nevaeva K. A. LabWork05 #5

Closed
ksenia_nevaeva wants to merge 3 commits from Lab_5 into Lab_4
Showing only changes of commit 740b975dc7 - Show all commits

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))