| | |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace Hydro.MapView |
| | | namespace Yw.WinFrmUI.Q3d |
| | | { |
| | | [Serializable] |
| | | public class TankViewModel:NodeViewModel |
| | |
| | | public TankViewModel(string id, string elevation, string initlevel, string minlevel, string maxlevel, string diameter, string minvol, string volcurve, string overflow) |
| | | { |
| | | ID = id; |
| | | Elev = float.Parse(elevation); |
| | | Z = float.Parse(elevation); |
| | | float d = 0; |
| | | float.TryParse(initlevel, out d); |
| | | InitLevel = d; |
| | |
| | | { |
| | | VolCurve = ""; |
| | | Overflow = ""; |
| | | return $"{ID}\t{Elev}\t{InitLevel}\t{MinLevel}\t{MaxLevel}\t{Diameter}\t{MinVol}\t{VolCurve}\t{Overflow}\t;\t"; |
| | | return $"{ID}\t{Z}\t{InitLevel}\t{MinLevel}\t{MaxLevel}\t{Diameter}\t{MinVol}\t{VolCurve}\t{Overflow}\t;\t"; |
| | | } |
| | | } |
| | | } |