52 lines
1.1 KiB
C#
52 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace JD.Sequencers.Times
|
|
{
|
|
/// <summary>
|
|
/// Standard way of notifying of a value changed.
|
|
/// </summary>
|
|
public class ValueChangedEventArgs<TValue> : EventArgs
|
|
{
|
|
#region Variables
|
|
|
|
private readonly TValue m_oldValue;
|
|
private readonly TValue m_newValue;
|
|
|
|
#endregion
|
|
|
|
#region Constructor
|
|
|
|
/// <summary>
|
|
/// Ctor.
|
|
/// </summary>
|
|
/// <param name="oldValue"></param>
|
|
/// <param name="newValue"></param>
|
|
public ValueChangedEventArgs(TValue oldValue, TValue newValue)
|
|
{
|
|
m_oldValue = oldValue;
|
|
m_newValue = newValue;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Properties
|
|
|
|
/// <summary>
|
|
/// Value before the changing of value.
|
|
/// </summary>
|
|
public TValue OldValue
|
|
{
|
|
get { return m_oldValue; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Value before the changing of value.
|
|
/// </summary>
|
|
public TValue NewValue
|
|
{
|
|
get { return m_newValue; }
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|