cloudflight
2024-08-05 46f88867a2d3561a701535bcc6c41d0f76634b52
WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/AreaViewModel.cs
@@ -1,4 +1,4 @@
using Hydro.Core.Model;
using Yw.WinFrmUI.Q3D;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
@@ -8,12 +8,12 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Hydro.MapView.MapViewEnum;
using static Yw.WinFrmUI.Q3D.MapViewEnum;
namespace Hydro.MapView.Base
namespace Yw.WinFrmUI.Q3D
{
    [Serializable]
    public class Area : BaseModel, IBaseViewModel
    public class Area : Q3DBaseModel, IBaseViewModel
    {
        public List<PointF> Points { get; set; }
@@ -88,7 +88,7 @@
        [Description("标高")]
        [DisplayName("标高")]
        [Browsable(true)]
        public float Elev { get; set; }
        public float Z { get; set; }
        [Category("其他参数")]
        [Description("对象的等级")]
@@ -115,11 +115,11 @@
        public string IDType => Type.ToString() + "\t" + ID;
        [Category("其他参数")]
        [Description("标签")]
        [DisplayName("标签")]
        [Editor(typeof(MyEditor), typeof(UITypeEditor))]
        public TagList Tags { get; set; } = null;
        //[Category("其他参数")]
        //[Description("标签")]
        //[DisplayName("标签")]
        //[Editor(typeof(MyEditor), typeof(UITypeEditor))]
        //public TagList Tags { get; set; } = null;
        
@@ -130,14 +130,13 @@
            if (this is TankViewModel) return MapObjectType.水池;
            if (this is MeterViewModel) return MapObjectType.水表;
            if (this is NozzleViewModel) return MapObjectType.喷头;
            if (this is ValveNodeViewModel) return MapObjectType.阀门点;
            if (this is PipeViewModel) return MapObjectType.管线;
            if (this is ValveViewModel) return MapObjectType.阀门;
            if (this is RepeaterViewModel) return MapObjectType.重复器;
            if (this is PumpViewModel) return MapObjectType.水泵;
            if (this is PumpNodeViewModel) return MapObjectType.水泵点;
            return MapObjectType.节点;
        }