using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
namespace RainmeterStudio.Model
{
public class Property : INotifyPropertyChanged
{
///
/// Gets or sets the name of the property
///
public string Name { get; private set; }
private object _value;
///
/// Gets or sets the value of the property
///
public object Value
{
get
{
return _value;
}
set
{
_value = value;
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs("Value"));
}
}
///
/// Triggered when the value changes
///
public event PropertyChangedEventHandler PropertyChanged;
///
/// Initializes this property
///
/// Name of the property
/// Value of the property
public Property(string name, object value = null)
{
Name = name;
Value = value;
}
}
}