diff --git a/Monorail/Monorail/FormMonorailCollection.Designer.cs b/Monorail/Monorail/FormMonorailCollection.Designer.cs index a1b15a0..e8e5af4 100644 --- a/Monorail/Monorail/FormMonorailCollection.Designer.cs +++ b/Monorail/Monorail/FormMonorailCollection.Designer.cs @@ -97,6 +97,7 @@ listBoxStorages.Name = "listBoxStorages"; listBoxStorages.Size = new Size(144, 104); listBoxStorages.TabIndex = 9; + listBoxStorages.Click += ListBoxObjects_SelectedIndexChanged; // // textBoxStorageName // diff --git a/Monorail/Monorail/FormMonorailCollection.cs b/Monorail/Monorail/FormMonorailCollection.cs index 2d2a16d..c2f7f9e 100644 --- a/Monorail/Monorail/FormMonorailCollection.cs +++ b/Monorail/Monorail/FormMonorailCollection.cs @@ -105,7 +105,7 @@ EventArgs e) } int addedIndex = obj + monorail; - if (addedIndex!= -1 && addedIndex < countPlace) + if (addedIndex != -1 && addedIndex < countPlace) { MessageBox.Show("Объект добавлен"); pictureBoxCollection.Image = obj.ShowMonorails();