28 lines
741 B
C#
28 lines
741 B
C#
using System.ComponentModel;
|
|
|
|
namespace MediaBrowser.UI.ViewModels
|
|
{
|
|
/// <summary>
|
|
/// Represents a base ViewModel
|
|
/// </summary>
|
|
public abstract class BaseViewModel : INotifyPropertyChanged
|
|
{
|
|
/// <summary>
|
|
/// Occurs when [property changed].
|
|
/// </summary>
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
|
|
/// <summary>
|
|
/// Called when [property changed].
|
|
/// </summary>
|
|
/// <param name="name">The name.</param>
|
|
public virtual void OnPropertyChanged(string name)
|
|
{
|
|
if (PropertyChanged != null)
|
|
{
|
|
PropertyChanged(this, new PropertyChangedEventArgs(name));
|
|
}
|
|
}
|
|
}
|
|
}
|