mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-13 12:34:46 +01:00
27 lines
741 B
C#
27 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));
|
|
}
|
|
}
|
|
}
|
|
}
|