UWUVCI-AIO-WPF/UWUVCI AIO WPF/Models/BaseModel.cs

26 lines
771 B
C#
Raw Normal View History

2020-03-01 15:07:22 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
namespace UWUVCI_AIO_WPF
{
2020-04-06 19:30:31 +00:00
[Serializable]
2020-03-01 15:07:22 +00:00
public class BaseModel : INotifyPropertyChanged
{
// Declare the PropertyChanged event
public event PropertyChangedEventHandler PropertyChanged;
// OnPropertyChanged will raise the PropertyChanged event passing the
// source property that is being updated.
protected void OnPropertyChanged([CallerMemberName]string propertyName = "")
{
if (this.PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}