mirror of
https://github.com/stuff-by-3-random-dudes/UWUVCI-AIO-WPF
synced 2024-11-27 13:30:35 +00:00
26 lines
No EOL
771 B
C#
26 lines
No EOL
771 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Text;
|
|
|
|
namespace UWUVCI_AIO_WPF
|
|
{
|
|
[Serializable]
|
|
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));
|
|
}
|
|
}
|
|
}
|
|
} |