PIbd-22 Chubykina P.P. LabWork_04 #4

Closed
chubykina_polina wants to merge 5 commits from LabWork_04 into LabWork_03
Showing only changes of commit 9aae540110 - Show all commits

View File

@ -29,10 +29,12 @@ namespace Sailboat
{
int index = listBoxStorages.SelectedIndex;
listBoxStorages.Items.Clear();
for (int i = 0; i < _storage.Keys.Count; i++)
{
listBoxStorages.Items.Add(_storage.Keys[i]);
}
if (listBoxStorages.Items.Count > 0 && (index == -1 || index
>= listBoxStorages.Items.Count))
{