lixiaojun
2024-11-08 adf7734a40dec76fc31590906eeadd02c782db90
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));
        }
    }
}