mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
27 lines
805 B
C#
27 lines
805 B
C#
using System.ComponentModel;
|
|
using System.Runtime.CompilerServices;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Flow.Launcher.Plugin
|
|
{
|
|
/// <summary>
|
|
/// Base model for plugin classes
|
|
/// </summary>
|
|
public class BaseModel : INotifyPropertyChanged
|
|
{
|
|
/// <summary>
|
|
/// Property changed event handler
|
|
/// </summary>
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
/// <summary>
|
|
/// Invoked when a property changes
|
|
/// </summary>
|
|
/// <param name="propertyName"></param>
|
|
[NotifyPropertyChangedInvocator]
|
|
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
|
|
{
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
|
}
|
|
}
|
|
}
|