aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx/UI/ViewModels/BaseModel.cs
blob: 4db9cf81236e7aaba4374ccac9dbf7984bac786c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace Ryujinx.Ava.UI.ViewModels
{
    public class BaseModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        protected void OnPropertyChanged([CallerMemberName] string propertyName = null)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}