Flow.Launcher/Flow.Launcher.Plugin/BaseModel.cs
Oren Nachman 3648126854 Revert JSON Null change + fix more warnings
See comment inline re:JSON null
2022-08-08 17:35:38 -07:00

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));
}
}
}