mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
更新
This commit is contained in:
parent
733380c012
commit
928d16b572
@ -77,10 +77,10 @@ public class ObservableValue<T>
|
|||||||
private bool NotifyPropertyChanging(T oldValue, T newValue)
|
private bool NotifyPropertyChanging(T oldValue, T newValue)
|
||||||
{
|
{
|
||||||
PropertyChanging?.Invoke(this, new(nameof(Value)));
|
PropertyChanging?.Invoke(this, new(nameof(Value)));
|
||||||
var cancel = false;
|
|
||||||
// 若全部事件取消改变 则取消改变
|
// 若全部事件取消改变 则取消改变
|
||||||
ValueChanging?.Invoke(this, new(oldValue, newValue));
|
var args = new ValueChangingEventArgs<T>(oldValue, newValue);
|
||||||
return cancel;
|
ValueChanging?.Invoke(this, args);
|
||||||
|
return args.Cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user