From adf7734a40dec76fc31590906eeadd02c782db90 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期五, 08 十一月 2024 21:29:59 +0800 Subject: [PATCH] 优化导入,优化水流动画 --- WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/04-link/05-compressor/HydroCompressorViewModel.cs | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/04-link/05-compressor/HydroCompressorViewModel.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/04-link/05-compressor/HydroCompressorViewModel.cs index eac7f46..9389b4a 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/04-link/05-compressor/HydroCompressorViewModel.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-viewmodel/04-link/05-compressor/HydroCompressorViewModel.cs @@ -71,7 +71,7 @@ [Category("鏁版嵁")] [DisplayName("姘村ご鎹熷け鏇茬嚎")] [PropertyOrder(1004)] - [IsHydroCurvePro(HydroCurve.Compressor)] + [HydroCurvePro(HydroCurve.Compressor)] [Browsable(true)] public string Curve { @@ -91,7 +91,7 @@ [Category("鏁版嵁")] [DisplayName("姘村ご鎹熷け鏇茬嚎")] [PropertyOrder(1005)] - [IsHydroCurvePro(HydroCurve.CompressorQL)] + [HydroCurvePro(HydroCurve.CompressorQL)] [Browsable(false)] public string CurveQL { get; set; } @@ -117,5 +117,21 @@ this.UpdatePropStatus(nameof(this.CurveQL), this.Vmo, nameof(this.Vmo.CurveQL)); } + /// <summary> + /// + /// </summary> + public override void UpdateVmoProperty() + { + base.UpdateVmoProperty(); + this.Vmo.Material = this.Material; + this.Vmo.UpdatePropStatus(nameof(this.Vmo.Material), this, nameof(this.Material)); + this.Vmo.Diameter = this.Diameter; + this.Vmo.UpdatePropStatus(nameof(this.Vmo.Diameter), this, nameof(this.Diameter)); + this.Vmo.MinorLoss = this.MinorLoss; + this.Vmo.UpdatePropStatus(nameof(this.Vmo.MinorLoss), this, nameof(this.MinorLoss)); + this.Vmo.CurveQL = this.CurveQL; + this.Vmo.UpdatePropStatus(nameof(this.Vmo.CurveQL), this, nameof(this.CurveQL)); + } + } } -- Gitblit v1.9.3