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(); }