using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace RGBController2.ViewModels
{
///
/// The BaeViewModel from which all view models should inherit.
///
public class BaseViewModel : INotifyPropertyChanged
{
///
/// An event used for when a property used by the UI is change by the view model.
///
public event PropertyChangedEventHandler PropertyChanged;
///
/// Function to update the GUI View when a given property has been changed by the view model.
///
/// The name of the changed property.
protected void OnPropertyChanged(string propertyName)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
}