From 45a9db6f9c4868f3086252bad71e45f226f5aa92 Mon Sep 17 00:00:00 2001 From: victinass Date: Tue, 21 May 2024 17:09:48 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=B0=20=E2=84=968?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Battleship/Battleship/FormWarshipCollection.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Battleship/Battleship/FormWarshipCollection.cs b/Battleship/Battleship/FormWarshipCollection.cs index 3143c3d..d8c1a6e 100644 --- a/Battleship/Battleship/FormWarshipCollection.cs +++ b/Battleship/Battleship/FormWarshipCollection.cs @@ -94,8 +94,7 @@ public partial class FormWarshipCollection : Form { return; } - - if (MessageBox.Show("Удалить объект?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes) + if (MessageBox.Show("Удалить объект?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; } @@ -231,8 +230,7 @@ public partial class FormWarshipCollection : Form // удалить и обновить ListBox if (listBoxCollection.SelectedIndex < 0 || listBoxCollection.SelectedItem == null) { - MessageBox.Show("Коллекция не выбрана"); - return; + MessageBox.Show("Коллекция не выбрана"); return; } try {