еще правочки
This commit is contained in:
parent
dc179c572a
commit
9aae540110
@ -29,10 +29,12 @@ namespace Sailboat
|
|||||||
{
|
{
|
||||||
int index = listBoxStorages.SelectedIndex;
|
int index = listBoxStorages.SelectedIndex;
|
||||||
listBoxStorages.Items.Clear();
|
listBoxStorages.Items.Clear();
|
||||||
|
|
||||||
for (int i = 0; i < _storage.Keys.Count; i++)
|
for (int i = 0; i < _storage.Keys.Count; i++)
|
||||||
{
|
{
|
||||||
listBoxStorages.Items.Add(_storage.Keys[i]);
|
listBoxStorages.Items.Add(_storage.Keys[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (listBoxStorages.Items.Count > 0 && (index == -1 || index
|
if (listBoxStorages.Items.Count > 0 && (index == -1 || index
|
||||||
>= listBoxStorages.Items.Count))
|
>= listBoxStorages.Items.Count))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user