55 lines
No EOL
1.2 KiB
C#
55 lines
No EOL
1.2 KiB
C#
using System;
|
|
using JD.Kernel.StaticHelpers;
|
|
|
|
namespace JD.PropertyService
|
|
{
|
|
public class PropertyChangedEventArgs : EventArgs
|
|
{
|
|
#region Variables
|
|
|
|
private readonly IProperties m_properties;
|
|
private readonly string m_propertyName;
|
|
private readonly object m_oldValue;
|
|
private readonly object m_newValue;
|
|
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
public PropertyChangedEventArgs(IProperties properties, string propertyName, object oldValue, object newValue)
|
|
{
|
|
Throw.IfNull(properties, "properties");
|
|
|
|
m_properties = properties;
|
|
m_propertyName = propertyName;
|
|
m_oldValue = oldValue;
|
|
m_newValue = newValue;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
public IProperties Properties
|
|
{
|
|
get { return m_properties; }
|
|
}
|
|
|
|
public string PropertyName
|
|
{
|
|
get { return m_propertyName; }
|
|
}
|
|
|
|
public object OldValue
|
|
{
|
|
get { return m_oldValue; }
|
|
}
|
|
|
|
public object NewValue
|
|
{
|
|
get { return m_newValue; }
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
} |