From 3eceaaf9b22820a2522537ac11c28f710fcff18a Mon Sep 17 00:00:00 2001 From: AnnaLioness Date: Tue, 5 Dec 2023 19:08:30 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=BF=20=D0=B7=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lab1ContainersShip/Lab1ContainersShip/FormShipCollection.cs | 2 +- Lab1ContainersShip/Lab1ContainersShip/ShipGenericCollection.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Lab1ContainersShip/Lab1ContainersShip/FormShipCollection.cs b/Lab1ContainersShip/Lab1ContainersShip/FormShipCollection.cs index 1612ea2..1e4cf1d 100644 --- a/Lab1ContainersShip/Lab1ContainersShip/FormShipCollection.cs +++ b/Lab1ContainersShip/Lab1ContainersShip/FormShipCollection.cs @@ -219,7 +219,7 @@ namespace Lab1ContainersShip { MessageBox.Show($"Не загрузилось: {ex.Message}", "Результат", MessageBoxButtons.OK, MessageBoxIcon.Error); - _logger.LogWarning($"Не удалось сохранить наборы с ошибкой: {ex.Message}"); + _logger.LogWarning($"Не удалось загрузить наборы с ошибкой: {ex.Message}"); } } ReloadObjects(); diff --git a/Lab1ContainersShip/Lab1ContainersShip/ShipGenericCollection.cs b/Lab1ContainersShip/Lab1ContainersShip/ShipGenericCollection.cs index e5dda48..79ae449 100644 --- a/Lab1ContainersShip/Lab1ContainersShip/ShipGenericCollection.cs +++ b/Lab1ContainersShip/Lab1ContainersShip/ShipGenericCollection.cs @@ -61,6 +61,7 @@ namespace Lab1ContainersShip return -1; } return collect?._collection.Insert(obj) ?? -1; + } /// /// Перегрузка оператора вычитания