lixiaojun
2025-01-22 46f64905a3c309a50c0f245b3350cdeb8dd699c6
WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/AreaViewModel.cs
@@ -1,5 +1,4 @@
using Yw.WinFrmUI.Q3D;
using Newtonsoft.Json;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -8,12 +7,13 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Yw.WinFrmUI.Q3D.MapViewEnum;
using Yw.WinFrmUI.Q3d;
using static Yw.WinFrmUI.Q3d.MapViewEnum;
namespace Yw.WinFrmUI.Q3D
namespace Yw.WinFrmUI.Q3d
{
    [Serializable]
    public class Area : BaseModel, IBaseViewModel
    public class Area : Q3DBaseModel, IBaseViewModel
    {
        public List<PointF> Points { get; set; }
@@ -121,7 +121,7 @@
        //[Editor(typeof(MyEditor), typeof(UITypeEditor))]
        //public TagList Tags { get; set; } = null;
        public MapObjectType GetTypeString()
        {
@@ -130,13 +130,13 @@
            if (this is TankViewModel) return MapObjectType.水池;
            if (this is MeterViewModel) return MapObjectType.水表;
            if (this is NozzleViewModel) return MapObjectType.喷头;
            if (this is PipeViewModel) return MapObjectType.管线;
            if (this is ValveViewModel) return MapObjectType.阀门;
            if (this is PumpViewModel) return MapObjectType.水泵;
            return MapObjectType.节点;
        }