Правки

This commit is contained in:
DyCTaTOR 2023-11-08 09:01:20 +04:00
parent debf63ef08
commit 4e7e01499f
2 changed files with 7 additions and 0 deletions

View File

@ -97,6 +97,7 @@
listBoxStorages.Name = "listBoxStorages";
listBoxStorages.Size = new Size(144, 104);
listBoxStorages.TabIndex = 9;
listBoxStorages.Click += ListBoxObjects_SelectedIndexChanged;
//
// textBoxStorageName
//

View File

@ -42,6 +42,12 @@ namespace Monorail
{
listBoxStorages.SelectedIndex = index;
}
var obj = _storage[listBoxStorages.SelectedItem.ToString() ?? string.Empty];
if (obj == null)
{
return;
}
pictureBoxCollection.Image = obj.ShowMonorails();
}
private void ButtonAddObject_Click(object sender, EventArgs e)
{