namespace Yw.WinFrmUI { /// /// 扩散器视图 /// public class HydroEmitterViewModel : HydroJunctionViewModel { /// /// /// public HydroEmitterViewModel() : base() { } /// /// /// public HydroEmitterViewModel(Yw.Model.HydroEmitterInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo) { this.Coefficient = rhs.Coefficient; this.UpdatePropStatus(nameof(this.Coefficient), rhs, nameof(rhs.Coefficient)); this.Vmo = rhs; } /// /// 喷射系数 /// [Category("数据")] [DisplayName("喷射系数")] [PropertyOrder(1001)] [Browsable(true)] public virtual double Coefficient { get; set; } /// /// /// [Browsable(false)] public new Yw.Model.HydroEmitterInfo Vmo { get; set; } /// /// /// public override void UpdateProperty() { base.UpdateProperty(); this.Coefficient = this.Vmo.Coefficient; this.UpdatePropStatus(nameof(this.Coefficient), this.Vmo, nameof(this.Vmo.Coefficient)); } } }