From 87416e73acdedd2d3ad595a7782cb7b161b2f95e Mon Sep 17 00:00:00 2001 From: RomanKamen Date: Thu, 2 Apr 2026 09:59:15 +0500 Subject: [PATCH] Working ver.1.2 --- WpfApp1/WpfApp1/ViewRecordsWindow.xaml | 8 ++------ WpfApp1/WpfApp1/ViewRecordsWindow.xaml.cs | 9 ++++++++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/WpfApp1/WpfApp1/ViewRecordsWindow.xaml b/WpfApp1/WpfApp1/ViewRecordsWindow.xaml index 78357a1..46fbad6 100644 --- a/WpfApp1/WpfApp1/ViewRecordsWindow.xaml +++ b/WpfApp1/WpfApp1/ViewRecordsWindow.xaml @@ -13,12 +13,8 @@ - - - - - - + + diff --git a/WpfApp1/WpfApp1/ViewRecordsWindow.xaml.cs b/WpfApp1/WpfApp1/ViewRecordsWindow.xaml.cs index 4b9f59a..f3acdd4 100644 --- a/WpfApp1/WpfApp1/ViewRecordsWindow.xaml.cs +++ b/WpfApp1/WpfApp1/ViewRecordsWindow.xaml.cs @@ -39,7 +39,14 @@ namespace WpfApp1 if (File.Exists(FilePath)) { string json = File.ReadAllText(FilePath); - _allEntries = JsonSerializer.Deserialize>(json) ?? new List(); + + // Добавляем настройки + var options = new JsonSerializerOptions + { + PropertyNameCaseInsensitive = true + }; + + _allEntries = JsonSerializer.Deserialize>(json, options) ?? new List(); } RefreshList(); }