mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
Pushing missing changes
This commit is contained in:
27
MediaBrowser.UI/ViewModels/BaseViewModel.cs
Normal file
27
MediaBrowser.UI/ViewModels/BaseViewModel.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user