spc-kiosk-pb/Kiosk/Common/SPC.Kiosk.Base/ViewModelBase.cs

27 lines
629 B
C#
Raw Normal View History

2019-06-16 05:12:09 +00:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace SPC.Kiosk.Base
{
/// <summary>
/// Basic View Model
/// </summary>
public abstract class ViewModelBase : INotifyPropertyChanged
{
/// <summary>
/// View Model a Member PropertyChanged EventHandler
/// </summary>
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void PropertyChange(string propName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName));
}
}
}