#region Disclaimer/Info
///////////////////////////////////////////////////////////////////////////////////////////////////
// Subtext WebLog
//
// Subtext is an open source weblog system that is a fork of the .TEXT
// weblog system.
//
// For updated news and information please visit http://subtextproject.com/
// Subtext is hosted at Google Code at http://code.google.com/p/subtext/
// The development mailing list is at subtext@googlegroups.com
//
// This project is licensed under the BSD license. See the License.txt file for more information.
///////////////////////////////////////////////////////////////////////////////////////////////////
#endregion
using System;
namespace Subtext.Scripting{
/// <summary>
/// Contains information about when a template parameter value changes.
/// </summary>
public class ParameterValueChangedEventArgs : EventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="ParameterValueChangedEventArgs"/> class.
/// </summary>
/// <param name="parameterName">Name of the parameter.</param>
/// <param name="oldValue">The old value.</param>
/// <param name="newValue">The new value.</param>
public ParameterValueChangedEventArgs(string parameterName, string oldValue, string newValue)
{
OldValue = oldValue;
NewValue = newValue;
ParameterName = parameterName;
}
/// <summary>
/// Gets the name of the parameter.
/// </summary>
/// <value>The name of the parameter.</value>
public string ParameterName { get; private set; }
/// <summary>
/// Gets the old value.
/// </summary>
/// <value>The old value.</value>
public string OldValue { get; private set; }
/// <summary>
/// Gets the new value.
/// </summary>
/// <value>The new value.</value>
public string NewValue { get; private set; }
}
}
|