namespace Yw.WinFrmUI { /// /// 水库视图 /// public class HydroReservoirViewModel : HydroSourceViewModel, IHydroCalcuReservoirResult { /// /// /// public HydroReservoirViewModel() : base() { } /// /// /// public HydroReservoirViewModel(Yw.Model.HydroReservoirInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo) { this.Head = rhs.Head; this.HeadPattern = rhs.HeadPattern; } /// /// 总水头 /// [Category("数据")] [DisplayName("总水头")] [Display(Name = "总水头(m)")] [HydroMarkPro] [PropertyOrder(1002)] [DisplayUnit("m")] [Browsable(true)] public double Head { get; set; } /// /// 水头模式 /// [Category("数据")] [DisplayName("水头模式")] [PropertyOrder(1003)] [HydroPatternPro(HydroPattern.Head)] [Browsable(true)] public string HeadPattern { get; set; } /// /// /// [Browsable(false)] public new Yw.Model.HydroReservoirInfo Vmo { get { return _vmo as Yw.Model.HydroReservoirInfo; } set { _vmo = value; } } /// /// /// public override void UpdateProperty() { base.UpdateProperty(); this.Head = this.Vmo.Head; this.HeadPattern = this.Vmo.HeadPattern; } /// /// /// public override void UpdateVmoProperty() { base.UpdateVmoProperty(); this.Vmo.Head = this.Head; this.Vmo.HeadPattern = this.HeadPattern; } } }