From 57ba9fa79fa0e6dc4eba52998d2b4a86aa98a8fe Mon Sep 17 00:00:00 2001 From: "nikbel2004@outlook.com" Date: Wed, 29 Nov 2023 01:46:26 +0400 Subject: [PATCH] fix --- Tank/Tank/FormTanksCollections.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Tank/Tank/FormTanksCollections.cs b/Tank/Tank/FormTanksCollections.cs index 95b7bad..0f1db6f 100644 --- a/Tank/Tank/FormTanksCollections.cs +++ b/Tank/Tank/FormTanksCollections.cs @@ -56,8 +56,7 @@ namespace Tank ReloadObjects(); } - private void ListBoxObjects_SelectedIndexChanged(object sender, - EventArgs e) + private void ListBoxObjects_SelectedIndexChanged(object sender, EventArgs e) { DrawTank.Image = _storage[CollectionListBox.SelectedItem?.ToString() ?? string.Empty]?.ShowTanks(); @@ -178,7 +177,6 @@ namespace Tank private void LoadToolStripMenuItem_Click(object sender, EventArgs e) { - if (openFileDialog.ShowDialog() == DialogResult.OK) { if (_storage.LoadData(openFileDialog.FileName))