From 6cc0b436dc8b74f6343d3f7d2c26b25eaf2dcc8e Mon Sep 17 00:00:00 2001 From: mar-va Date: Tue, 21 May 2024 11:48:32 +0400 Subject: [PATCH] Lab7 --- ProjectAccordionBus/ProjectAccordionBus/FormBusCollection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectAccordionBus/ProjectAccordionBus/FormBusCollection.cs b/ProjectAccordionBus/ProjectAccordionBus/FormBusCollection.cs index 15f3026..fb51e0e 100644 --- a/ProjectAccordionBus/ProjectAccordionBus/FormBusCollection.cs +++ b/ProjectAccordionBus/ProjectAccordionBus/FormBusCollection.cs @@ -132,7 +132,7 @@ public partial class FormBusCollection : Form } catch (CollectionOverflowException ex) { - MessageBox.Show("В коллекции превышено допустимое количество: 24"); + MessageBox.Show(ex.Message); _logger.LogError($"Ошибка: {ex.Message}"); } } @@ -165,7 +165,7 @@ public partial class FormBusCollection : Form } catch (Exception ex) { - MessageBox.Show($"Не найден объект по позиции: {pos}"); + MessageBox.Show(ex.Message); _logger.LogError("Ошибка: {Message}", ex.Message); } }