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