namespace Yw.WinFrmUI
|
{
|
/// <summary>
|
/// 扩散器视图
|
/// </summary>
|
public class HydroEmitterViewModel : HydroJunctionViewModel
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public HydroEmitterViewModel() : base() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
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;
|
}
|
|
/// <summary>
|
/// 喷射系数
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("喷射系数")]
|
[PropertyOrder(1001)]
|
[Browsable(true)]
|
public virtual double Coefficient { get; set; }
|
|
/// <summary>
|
///
|
/// </summary>
|
[Browsable(false)]
|
public new Yw.Model.HydroEmitterInfo Vmo { get; set; }
|
|
/// <summary>
|
///
|
/// </summary>
|
public override void Update()
|
{
|
base.Update();
|
this.Coefficient = this.Vmo.Coefficient;
|
this.UpdatePropStatus(nameof(this.Coefficient), this.Vmo, nameof(this.Vmo.Coefficient));
|
}
|
|
|
|
}
|
}
|