namespace Yw.WinFrmUI
|
{
|
/// <summary>
|
/// 冷却塔视图
|
/// </summary>
|
public class HydroCoolingViewModel : HydroEmitterViewModel, IHydroCalcuCoolingResult
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public HydroCoolingViewModel() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
public HydroCoolingViewModel(Yw.Model.HydroCoolingInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo)
|
{
|
this.LowerLimit = rhs.LowerLimit;
|
this.UpdatePropStatus(nameof(this.LowerLimit), rhs, nameof(rhs.LowerLimit));
|
}
|
|
/// <summary>
|
/// 最小压力
|
/// </summary>
|
[Category("数据")]
|
[DisplayName("最小压力")]
|
[DisplayUnit("m")]
|
[Display(Name = "最小压力(m)")]
|
[PropertyOrder(4001)]
|
[Browsable(true)]
|
public virtual double LowerLimit { get; set; }
|
|
|
/// <summary>
|
///
|
/// </summary>
|
[Browsable(false)]
|
public new Yw.Model.HydroCoolingInfo Vmo
|
{
|
get { return _vmo as Yw.Model.HydroCoolingInfo; }
|
set { _vmo = value; }
|
}
|
|
|
/// <summary>
|
///
|
/// </summary>
|
public override void UpdateProperty()
|
{
|
base.UpdateProperty();
|
this.LowerLimit = this.Vmo.LowerLimit;
|
this.UpdatePropStatus(nameof(this.LowerLimit), this.Vmo, nameof(this.Vmo.LowerLimit));
|
}
|
|
/// <summary>
|
///
|
/// </summary>
|
public override void UpdateVmoProperty()
|
{
|
base.UpdateVmoProperty();
|
this.Vmo.LowerLimit = this.LowerLimit;
|
this.Vmo.UpdatePropStatus(nameof(this.Vmo.LowerLimit), this, nameof(this.LowerLimit));
|
}
|
|
|
}
|
}
|