aboutsummaryrefslogtreecommitdiffstats
path: root/WarframeClock/BindableBase.cs
blob: d3e6d254cbc249ddbe9130898cd40f1dbd4389f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace WarframeClock
{
    public abstract class BindableBase : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

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