From 46f88867a2d3561a701535bcc6c41d0f76634b52 Mon Sep 17 00:00:00 2001
From: cloudflight <cloudflight@126.com>
Date: 星期一, 05 八月 2024 15:19:07 +0800
Subject: [PATCH] 添加示例

---
 WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/AreaViewModel.cs |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/AreaViewModel.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/AreaViewModel.cs
index 3eb644d..998d508 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/AreaViewModel.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/AreaViewModel.cs
@@ -1,4 +1,4 @@
-锘縰sing Hydro.Core.Model;
+锘縰sing 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.鑺傜偣;
         }

--
Gitblit v1.9.3