From 71c956d53e25d73947ce14690fae74f3542da002 Mon Sep 17 00:00:00 2001
From: cloudflight <cloudflight@126.com>
Date: 星期一, 06 五月 2024 15:41:50 +0800
Subject: [PATCH] feature:优化结构

---
 Hydraulic/Hydro.MapView/Common/MapDimensions.cs |   45 +++++++++++++++++++++++++++++++++++++++------
 1 files changed, 39 insertions(+), 6 deletions(-)

diff --git a/Hydraulic/Hydro.MapView/Common/MapDimensions.cs b/Hydraulic/Hydro.MapView/Common/MapDimensions.cs
index 7c0ec66..5d886fa 100644
--- a/Hydraulic/Hydro.MapView/Common/MapDimensions.cs
+++ b/Hydraulic/Hydro.MapView/Common/MapDimensions.cs
@@ -11,6 +11,8 @@
     [Serializable]
     public class MapDimensions
     {
+        
+
         [Category("4銆佽瑙�")]
         [DisplayName("涓績")]
         [Browsable(true)]
@@ -26,10 +28,24 @@
         [Browsable(true)]
         public double rotation { get; set; } = 0;
 
+
+        private double _rotationF;
         [Category("4銆佽瑙�")]
         [DisplayName("淇瑙掑害")]
         [Browsable(true)]
-        public double rotationF { get; set; } = 90;
+        public double rotationF 
+        {
+            get 
+            {
+                if (Lock2DView) _rotationF = 90;
+                return _rotationF;
+            }
+            set 
+            { 
+                _rotationF = value;
+                if (Lock2DView) _rotationF = 90;
+            } 
+        }
 
         [Category("4銆佽瑙�")]
         [DisplayName("鏄剧ず妤煎眰")]
@@ -42,15 +58,32 @@
         public bool isShowPic { get; set; } = true;
 
         [Category("4銆佽瑙�")]
-        [DisplayName("鏈�涓嶅埄鐐�")]
+        [DisplayName("鏄剧ず鏈�涓嶅埄鐐�")]
         [Browsable(true)]
         public bool isShowUnfavor { get; set; } = true;
 
-        [Browsable(false)]
-        public int NodeColourIndex { get; set; } = 0;
+        //[Browsable(false)]
+        //public int NodeColourIndex { get; set; } = 0;
 
-        [Browsable(false)]
-        public int LinkColourIndex { get; set; } = 0;
+        //[Browsable(false)]
+        //public int LinkColourIndex { get; set; } = 0;
+
+        [Category("4銆佽瑙�")]
+        [DisplayName("閿佸畾骞抽潰瑙嗚")]
+        [Browsable(true)]
+        public bool Lock2DView { get; set; }=false;
+        /// <summary>
+        /// 姝d氦妯″紡
+        /// </summary>
+        public bool IsOrtho { get; set; } = true;
+
+        /// <summary>
+        /// 鏄剧ず鐨勯鑹插垎绾�
+        /// </summary>
+        public ColourType ColourNode { get; set; } = ColourType.鏃�;
+        public ColourType ColourLink { get; set; } = ColourType.鏃�;
+
+
 
         public MapDimensions Copy()
         {

--
Gitblit v1.9.3