diff --git a/src/BD.WTTS.Client/Settings/Infrastructure/Abstractions/SettingsStructPropertyBase.cs b/src/BD.WTTS.Client/Settings/Infrastructure/Abstractions/SettingsStructPropertyBase.cs index 375a154e887..11061918744 100644 --- a/src/BD.WTTS.Client/Settings/Infrastructure/Abstractions/SettingsStructPropertyBase.cs +++ b/src/BD.WTTS.Client/Settings/Infrastructure/Abstractions/SettingsStructPropertyBase.cs @@ -92,8 +92,7 @@ public override void RaiseValueChanged(bool notSave = false) public override void Reset(bool save = true) { var oldValue = value; - value = Default; // 赋值当前字段 - setter(monitor.CurrentValue, default); // 赋值模型类属性 + setter(monitor.CurrentValue, value = Default); // 赋值模型类属性 OnValueChanged(oldValue, value); // 调用变更事件 diff --git a/src/BD.WTTS.Client/Settings/Infrastructure/SettingsProperty.cs b/src/BD.WTTS.Client/Settings/Infrastructure/SettingsProperty.cs index e33e1a243eb..355bcecfbef 100644 --- a/src/BD.WTTS.Client/Settings/Infrastructure/SettingsProperty.cs +++ b/src/BD.WTTS.Client/Settings/Infrastructure/SettingsProperty.cs @@ -139,8 +139,7 @@ public override void RaiseValueChanged(bool notSave = false) public override void Reset(bool save = true) { var oldValue = value; - value = Default; // 赋值当前字段 - SetModelValue(default); // 赋值模型类属性 + SetModelValue(value = Default); // 赋值模型类属性 OnValueChanged(oldValue, value); // 调用变更事件