Shuxia Ning
2025-01-07 5f51a2fe3461e1f88e75b0b6959719d25f657ef3
WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Model/TankViewModel.cs
@@ -5,10 +5,10 @@
using System.Text;
using System.Threading.Tasks;
namespace Hydro.MapView
namespace Yw.WinFrmUI.Q3d
{
    [Serializable]
    public class TankViewModel:NodeViewModel
    public class TankViewModel : NodeViewModel
    {
        [Category("计算参数")]
        [DisplayName("初始水位(m)")]
@@ -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";
        }
    }
}