jellyfin-server/MediaBrowser.UI/ViewModels/BaseViewModel.cs
2013-02-20 20:33:05 -05:00

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));
}
}
}
}