mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-16 04:29:16 +08:00
19 lines
548 B
C#
19 lines
548 B
C#
|
using System.ComponentModel;
|
|||
|
using System.Runtime.CompilerServices;
|
|||
|
using JetBrains.Annotations;
|
|||
|
using PropertyChanged;
|
|||
|
|
|||
|
namespace Wox.Plugin
|
|||
|
{
|
|||
|
[ImplementPropertyChanged]
|
|||
|
public class BaseModel : INotifyPropertyChanged
|
|||
|
{
|
|||
|
public event PropertyChangedEventHandler PropertyChanged;
|
|||
|
|
|||
|
[NotifyPropertyChangedInvocator]
|
|||
|
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
|
|||
|
{
|
|||
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|