mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
34 lines
799 B
C#
34 lines
799 B
C#
namespace HKW.HKWUtils.Observable;
|
|
|
|
/// <summary>
|
|
/// 属性改变后事件参数
|
|
/// </summary>
|
|
public class PropertyChangedXEventArgs : EventArgs
|
|
{
|
|
/// <summary>
|
|
/// 属性名
|
|
/// </summary>
|
|
public string PropertyName { get; }
|
|
|
|
/// <summary>
|
|
/// 旧值
|
|
/// </summary>
|
|
public object? OldValue { get; }
|
|
|
|
/// <summary>
|
|
/// 新值
|
|
/// </summary>
|
|
public object? NewValue { get; }
|
|
|
|
/// <inheritdoc/>
|
|
/// <param name="propertyName">属性名</param>
|
|
/// <param name="oldValue">旧值</param>
|
|
/// <param name="newValue">新值</param>
|
|
public PropertyChangedXEventArgs(string propertyName, object? oldValue, object? newValue)
|
|
{
|
|
PropertyName = propertyName;
|
|
OldValue = oldValue;
|
|
NewValue = newValue;
|
|
}
|
|
}
|