mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01: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));
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|