using System.ComponentModel; namespace HKW.HKWUtils.Observable; /// /// 属性改变前事件参数 /// public class PropertyChangingXEventArgs : CancelEventArgs { /// /// 属性名 /// public string PropertyName { get; } /// /// 旧值 /// public object? OldValue { get; } /// /// 新值 /// public object? NewValue { get; } /// /// 属性名 /// 旧值 /// 新值 public PropertyChangingXEventArgs(string propertyName, object? oldValue, object? newValue) { PropertyName = propertyName; OldValue = oldValue; NewValue = newValue; } }