From 155d629ad0fe40100b65e9af89486e2c240bd4e7 Mon Sep 17 00:00:00 2001 From: Tracy Pearson Date: Sun, 31 Mar 2024 01:12:12 -0400 Subject: [PATCH] Found the problem. Override the GetHashCode of the model causes the binding to fail updating the UI. --- .../SermonFiler/MaintainSermonFilerModel.cs | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/MVPLearning/RecordKeeping/SermonFiler/MaintainSermonFilerModel.cs b/MVPLearning/RecordKeeping/SermonFiler/MaintainSermonFilerModel.cs index 61332b0..a376301 100644 --- a/MVPLearning/RecordKeeping/SermonFiler/MaintainSermonFilerModel.cs +++ b/MVPLearning/RecordKeeping/SermonFiler/MaintainSermonFilerModel.cs @@ -56,19 +56,20 @@ namespace MVPLearning.RecordKeeping.SermonFiler public override int GetHashCode() { - HashCode hash = new(); - hash.Add(Seid); - hash.Add(Title); - hash.Add(Scripture); - hash.Add(When); - hash.Add(Subject); - hash.Add(Minister); - hash.Add(Where); - hash.Add(Ref_No); - hash.Add(Notes); - hash.Add(Filename); - hash.Add(Web); - return hash.ToHashCode(); + //HashCode hash = new(); + //hash.Add(Seid); + //hash.Add(Title); + //hash.Add(Scripture); + //hash.Add(When); + //hash.Add(Subject); + //hash.Add(Minister); + //hash.Add(Where); + //hash.Add(Ref_No); + //hash.Add(Notes); + //hash.Add(Filename); + //hash.Add(Web); + //return hash.ToHashCode(); + return base.GetHashCode(); } } }