using System.ComponentModel;
using System.Runtime.CompilerServices;
using JetBrains.Annotations;
namespace Flow.Launcher.Plugin
{
///
/// Base model for plugin classes
///
public class BaseModel : INotifyPropertyChanged
{
///
/// Property changed event handler
///
public event PropertyChangedEventHandler PropertyChanged;
///
/// Invoked when a property changes
///
///
[NotifyPropertyChangedInvocator]
protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}