22 lines
410 B
C#
22 lines
410 B
C#
namespace Ghost.Editor.Core.Event;
|
|
|
|
public delegate void ValueChangedEventHandler<T>(object? sender, ValueChangedEventArgs<T> args);
|
|
|
|
public class ValueChangedEventArgs<T> : EventArgs
|
|
{
|
|
public T OldValue
|
|
{
|
|
get;
|
|
}
|
|
|
|
public T NewValue
|
|
{
|
|
get;
|
|
}
|
|
|
|
public ValueChangedEventArgs(T oldValue, T newValue)
|
|
{
|
|
OldValue = oldValue;
|
|
NewValue = newValue;
|
|
}
|
|
} |