From 07984a1940630455b88a8626245fc387d165291a Mon Sep 17 00:00:00 2001 From: "nikbel2004@outlook.com" Date: Sat, 9 Dec 2023 03:20:31 +0400 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=BB=D0=B0=D0=B1=D0=BE=D1=80=D0=B0=D1=82=D0=BE=D1=80=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=207?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tank/Tank/FormTanksCollections.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tank/Tank/FormTanksCollections.cs b/Tank/Tank/FormTanksCollections.cs index 8f75556..8b7ce86 100644 --- a/Tank/Tank/FormTanksCollections.cs +++ b/Tank/Tank/FormTanksCollections.cs @@ -77,13 +77,13 @@ namespace Tank _logger.LogWarning("Удаление невыбранного набора"); return; } - string name = CollectionListBox.SelectedItem.ToString() ?? string.Empty; - if (MessageBox.Show($"Удалить объект {name}?", "Удаление", MessageBoxButtons.YesNo, + string nameSet = CollectionListBox.SelectedItem.ToString() ?? string.Empty; + if (MessageBox.Show($"Удалить объект {nameSet}?", "Удаление", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { - _storage.DelSet(name); + _storage.DelSet(nameSet); ReloadObjects(); - _logger.LogInformation($"Набор '{name}' удален"); + _logger.LogInformation($"Набор '{nameSet}' удален"); } _logger.LogWarning("Отмена удаления набора"); }