lixiaojun
2024-11-11 00bcee19c5dff21a9848c16b45419efb74bf07e9
WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Model/TankViewModel.cs
@@ -5,7 +5,7 @@
using System.Text;
using System.Threading.Tasks;
namespace Hydro.MapView
namespace Yw.WinFrmUI.Q3d
{
    [Serializable]
    public class TankViewModel:NodeViewModel
@@ -55,7 +55,7 @@
        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;
@@ -75,7 +75,7 @@
        {
            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";
        }
    }
}