markus / MarkusAutoUpdate / src / NetSparkle.UI.Avalonia / Helpers / ChangeNotifier.cs @ d8f5045e
이력 | 보기 | 이력해설 | 다운로드 (692 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.ComponentModel; |
4 |
using System.Linq; |
5 |
using System.Runtime.CompilerServices; |
6 |
using System.Text; |
7 |
using System.Threading.Tasks; |
8 |
|
9 |
namespace NetSparkleUpdater.UI.Avalonia.Helpers |
10 |
{ |
11 |
// https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifypropertychanged?view=netframework-4.7.2 |
12 |
public class ChangeNotifier : INotifyPropertyChanged |
13 |
{ |
14 |
public event PropertyChangedEventHandler PropertyChanged; |
15 |
protected void NotifyPropertyChanged([CallerMemberName] string propertyName = "") |
16 |
{ |
17 |
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); |
18 |
} |
19 |
} |
20 |
} |