selectindex

This commit is contained in:
Алексей Тихоненков 2023-11-13 22:10:50 +04:00
parent 4965346ea3
commit 970eb473e5
2 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,7 @@
this.listBoxStorages.Name = "listBoxStorages"; this.listBoxStorages.Name = "listBoxStorages";
this.listBoxStorages.Size = new System.Drawing.Size(191, 94); this.listBoxStorages.Size = new System.Drawing.Size(191, 94);
this.listBoxStorages.TabIndex = 6; this.listBoxStorages.TabIndex = 6;
this.listBoxStorages.SelectedIndexChanged += new System.EventHandler(this.ListBoxObjects_SelectedIndexChanged);
// //
// buttonAddCollection // buttonAddCollection
// //

View File

@ -146,6 +146,7 @@ namespace AntiAircraftGun
} }
} }
private void ButtonUpdateCollection_Click(object sender, EventArgs e) private void ButtonUpdateCollection_Click(object sender, EventArgs e)
{ {
if (listBoxStorages.SelectedIndex == -1) if (listBoxStorages.SelectedIndex == -1)