From e31bdb63d5fdd101ef483f8e54cfbdd1f370083e Mon Sep 17 00:00:00 2001 From: ekallin Date: Tue, 5 Dec 2023 13:20:41 +0400 Subject: [PATCH] lab 7 for pull request --- .../FormLocomotiveCollections.Designer.cs | 2 +- .../ProjectElectricLocomotive/FormLocomotiveCollections.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.Designer.cs b/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.Designer.cs index e5d96b9..4fbb3ae 100644 --- a/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.Designer.cs +++ b/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.Designer.cs @@ -60,7 +60,7 @@ // maskedTextBoxNumber.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right; maskedTextBoxNumber.Location = new Point(38, 342); - maskedTextBoxNumber.Mask = "0"; + maskedTextBoxNumber.Mask = "00"; maskedTextBoxNumber.Name = "maskedTextBoxNumber"; maskedTextBoxNumber.Size = new Size(156, 27); maskedTextBoxNumber.TabIndex = 4; diff --git a/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.cs b/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.cs index 87187f5..1332dc1 100644 --- a/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.cs +++ b/ProjectElectricLocomotive/ProjectElectricLocomotive/FormLocomotiveCollections.cs @@ -161,6 +161,7 @@ namespace ProjectElectricLocomotive catch (LocoNotFoundException ex) { MessageBox.Show(ex.Message); + _logger.LogWarning($"Не найден объект по позиции: {obj}"); } } @@ -209,6 +210,7 @@ namespace ProjectElectricLocomotive { _storage.LoadData(openFileDialog.FileName); _logger.LogInformation($"Данные загружены из файла {openFileDialog.FileName}"); + ReloadObjects(); } catch (Exception ex) {