ÎļþÃû´Ó WinFrmUI/Yw.WinFrmUI.Hydro.Core/03-property/01-node/03-junction/HydroJunctionPropertyViewModel.cs ÐÞ¸Ä |
| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public HydroJunctionPropertyViewModel() { } |
| | | public HydroJunctionPropertyViewModel() : base() { } |
| | | |
| | | /// <summary> |
| | | /// |
| | |
| | | { |
| | | this.Elev = rhs.Elev; |
| | | this.UpdatePropStatus(nameof(this.Elev), rhs, nameof(rhs.Elev)); |
| | | this.MinorLoss = rhs.MinorLoss; |
| | | this.UpdatePropStatus(nameof(this.MinorLoss), rhs, nameof(rhs.MinorLoss)); |
| | | this.Demand = rhs.Demand; |
| | | this.UpdatePropStatus(nameof(this.Demand), rhs, nameof(rhs.Demand)); |
| | | this.DemandPattern = rhs.DemandPattern; |
| | |
| | | [Category("æ°æ®")] |
| | | [DisplayName("æ é«")] |
| | | [PropertyOrder(101)] |
| | | [DisplayUnit("m")] |
| | | [Browsable(true)] |
| | | public double Elev { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æå¤±ç³»æ° |
| | | /// </summary> |
| | | [Category("æ°æ®")] |
| | | [DisplayName("æå¤±ç³»æ°")] |
| | | [PropertyOrder(33)] |
| | | [Browsable(true)] |
| | | public double? MinorLoss { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éæ°´é |
| | |
| | | [Category("æ°æ®")] |
| | | [DisplayName("éæ°´é")] |
| | | [PropertyOrder(102)] |
| | | [DisplayUnit("m³/h")] |
| | | [Browsable(true)] |
| | | public double? Demand { get; set; } |
| | | |
| | |
| | | /// <summary> |
| | | /// æ´æ°å±æ§ |
| | | /// </summary> |
| | | /// <param name="rhs"></param> |
| | | /// <param name="allParterList"></param> |
| | | public override void UpdateProperty(HydroParterInfo rhs, List<HydroParterInfo> allParterList) |
| | | { |
| | | base.UpdateProperty(rhs, allParterList); |
| | |
| | | { |
| | | this.Elev = hydroJunctionInfo.Elev; |
| | | this.UpdatePropStatus(nameof(this.Elev), hydroJunctionInfo, nameof(hydroJunctionInfo.Elev)); |
| | | this.MinorLoss = hydroJunctionInfo.MinorLoss; |
| | | this.UpdatePropStatus(nameof(this.MinorLoss), rhs, nameof(hydroJunctionInfo.MinorLoss)); |
| | | this.Demand = hydroJunctionInfo.Demand; |
| | | this.UpdatePropStatus(nameof(this.Demand), hydroJunctionInfo, nameof(hydroJunctionInfo.Demand)); |
| | | this.DemandPattern = hydroJunctionInfo.DemandPattern; |