// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
namespace ICSharpCode.Core
{
public delegate void PropertyChangedEventHandler(object sender, PropertyChangedEventArgs e);
public class PropertyChangedEventArgs : EventArgs
{
Properties properties;
string key;
object newValue;
object oldValue;
///
/// returns the changed property object
///
public Properties Properties {
get {
return properties;
}
}
///
/// The key of the changed property
///
public string Key {
get {
return key;
}
}
///
/// The new value of the property
///
public object NewValue {
get {
return newValue;
}
}
///
/// The new value of the property
///
public object OldValue {
get {
return oldValue;
}
}
public PropertyChangedEventArgs(Properties properties, string key, object oldValue, object newValue)
{
this.properties = properties;
this.key = key;
this.oldValue = oldValue;
this.newValue = newValue;
}
}
}