Updated to use new Dinah.Core.Threading
This commit is contained in:
parent
64a8f007a5
commit
a86185e644
@ -1,7 +1,6 @@
|
|||||||
using Dinah.Core.Threading;
|
using Dinah.Core.Threading;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Threading;
|
|
||||||
|
|
||||||
namespace LibationWinForms
|
namespace LibationWinForms
|
||||||
{
|
{
|
||||||
@ -9,9 +8,7 @@ namespace LibationWinForms
|
|||||||
{
|
{
|
||||||
public event PropertyChangedEventHandler PropertyChanged;
|
public event PropertyChangedEventHandler PropertyChanged;
|
||||||
|
|
||||||
public AsyncNotifyPropertyChanged() { }
|
|
||||||
|
|
||||||
protected void NotifyPropertyChanged([CallerMemberName] string propertyName = "")
|
protected void NotifyPropertyChanged([CallerMemberName] string propertyName = "")
|
||||||
=>BeginInvoke(PropertyChanged, new object[] { this, new PropertyChangedEventArgs(propertyName) });
|
=> this.UIThread(() => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user