From 173506221224a95ac35091b7ca970823513e7109 Mon Sep 17 00:00:00 2001 From: Anitonchik Date: Mon, 6 May 2024 22:53:50 +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=967?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectDumpTruck/ProjectDumpTruck/FormTruckCollection.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ProjectDumpTruck/ProjectDumpTruck/FormTruckCollection.cs b/ProjectDumpTruck/ProjectDumpTruck/FormTruckCollection.cs index aabce03..67003ff 100644 --- a/ProjectDumpTruck/ProjectDumpTruck/FormTruckCollection.cs +++ b/ProjectDumpTruck/ProjectDumpTruck/FormTruckCollection.cs @@ -37,6 +37,7 @@ public partial class FormTruckCollection : Form InitializeComponent(); _storageCollection = new(); _logger = logger; + _logger.LogInformation("Форма загрузилась"); } /// @@ -114,6 +115,7 @@ public partial class FormTruckCollection : Form { MessageBox.Show("Объект удален"); pictureBox.Image = _company.Show(); + _logger.LogInformation("Объект удален"); } } catch (Exception ex) { @@ -191,6 +193,7 @@ public partial class FormTruckCollection : Form collectionType = CollectionType.List; } _storageCollection.AddCollection(textBoxCollectionName.Text, collectionType); + _logger.LogInformation("Коллекция добавлена " + textBoxCollectionName.Text); RerfreshListBoxItems(); } @@ -222,6 +225,7 @@ public partial class FormTruckCollection : Form return; } _storageCollection.DelCollection(listBoxCollection.SelectedItem.ToString()); + _logger.LogInformation("Коллекция с название: " + listBoxCollection.SelectedItem.ToString() + " удалена"); RerfreshListBoxItems(); } @@ -268,8 +272,7 @@ public partial class FormTruckCollection : Form { _storageCollection.SaveData(saveFileDialog.FileName); MessageBox.Show("Сохранение прошло успешно", "Результат", MessageBoxButtons.OK, MessageBoxIcon.Information); - _logger.LogInformation("Сохранение в файл: {filename}", - saveFileDialog.FileName); + _logger.LogInformation("Сохранение в файл: {filename}", saveFileDialog.FileName); } catch (Exception ex) {