| | |
| | | /// </summary> |
| | | public HydroTankPropertyViewModel(Yw.Model.HydroTankInfo rhs) : base(rhs) |
| | | { |
| | | this.PoolElev = rhs.PoolElev; |
| | | this.PoolElev = Math.Round(rhs.PoolElev, 4); |
| | | this.UpdatePropStatus(nameof(this.PoolElev), rhs, nameof(rhs.PoolElev)); |
| | | this.InitLevel = rhs.InitLevel; |
| | | this.InitLevel = Math.Round(rhs.InitLevel, 4); |
| | | this.UpdatePropStatus(nameof(this.InitLevel), rhs, nameof(rhs.InitLevel)); |
| | | this.MinLevel = rhs.MinLevel; |
| | | this.MinLevel = Math.Round(rhs.MinLevel, 4); |
| | | this.UpdatePropStatus(nameof(this.MinLevel), rhs, nameof(rhs.MinLevel)); |
| | | this.MaxLevel = rhs.MaxLevel; |
| | | this.MaxLevel = Math.Round(rhs.MaxLevel, 4); |
| | | this.UpdatePropStatus(nameof(this.MaxLevel), rhs, nameof(rhs.MaxLevel)); |
| | | this.DN = rhs.DN; |
| | | this.DN = Math.Round(rhs.DN, 4); |
| | | this.UpdatePropStatus(nameof(this.DN), rhs, nameof(rhs.DN)); |
| | | this.MinVol = rhs.MinVol; |
| | | this.MinVol = Math.Round(rhs.MinVol, 4); |
| | | this.UpdatePropStatus(nameof(this.MinVol), rhs, nameof(rhs.MinVol)); |
| | | this.VolCurve = rhs.VolCurve; |
| | | this.UpdatePropStatus(nameof(this.VolCurve), rhs, nameof(rhs.VolCurve)); |