From 362c46bdc26fe5ff9951d8aabea08813cd44df62 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Wed, 8 Apr 2026 11:37:23 +0200 Subject: [PATCH] =?UTF-8?q?AbstractDCMapperVM=20erweitert=20->=20Bessere?= =?UTF-8?q?=20FirePropertyChanged=20Syntax=20f=C3=BCr=20abh=C3=A4ngige=20E?= =?UTF-8?q?igenschaften?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeWo/ViewModel/AbstractDCMapperVM.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/BeWo/ViewModel/AbstractDCMapperVM.cs b/BeWo/ViewModel/AbstractDCMapperVM.cs index 9725648e0..6f9574423 100644 --- a/BeWo/ViewModel/AbstractDCMapperVM.cs +++ b/BeWo/ViewModel/AbstractDCMapperVM.cs @@ -85,6 +85,21 @@ namespace BeWo.ViewModel } } + protected bool SetProperty(ref T field, T value, string propertyName, Func originalValueProvider = null, params string[] morePropertyNames) + { + var success = SetProperty(ref field, value, propertyName, originalValueProvider); + + if (success) + { + foreach (var morePropertyName in morePropertyNames) + { + FirePropertyChanged(morePropertyName); + } + } + + return success; + } + protected new bool SetProperty(ref T field, T value, string propertyName, Func originalValueProvider = null) { if (EqualityComparer.Default.Equals(field, value))