From a86185e64426dba647b7cb32366a6662c269ab48 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Wed, 18 Aug 2021 14:29:25 -0600 Subject: [PATCH] Updated to use new Dinah.Core.Threading --- LibationWinForms/AsyncNotifyPropertyChanged.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LibationWinForms/AsyncNotifyPropertyChanged.cs b/LibationWinForms/AsyncNotifyPropertyChanged.cs index 1510d4fa..96f007ed 100644 --- a/LibationWinForms/AsyncNotifyPropertyChanged.cs +++ b/LibationWinForms/AsyncNotifyPropertyChanged.cs @@ -1,7 +1,6 @@ using Dinah.Core.Threading; using System.ComponentModel; using System.Runtime.CompilerServices; -using System.Threading; namespace LibationWinForms { @@ -9,9 +8,7 @@ namespace LibationWinForms { public event PropertyChangedEventHandler PropertyChanged; - public AsyncNotifyPropertyChanged() { } - protected void NotifyPropertyChanged([CallerMemberName] string propertyName = "") - =>BeginInvoke(PropertyChanged, new object[] { this, new PropertyChangedEventArgs(propertyName) }); + => this.UIThread(() => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName))); } }