From c39b9fc1b3abae8b2bddea9c67e1477f0e01b239 Mon Sep 17 00:00:00 2001
From: qin <a@163.com>
Date: 星期二, 14 五月 2024 11:10:26 +0800
Subject: [PATCH] 统一单位和命名规范

---
 Hydraulic/Hydro.MapView/Common/MapDimensions.cs |   66 ++++++++++++++++++++++++++------
 1 files changed, 53 insertions(+), 13 deletions(-)

diff --git a/Hydraulic/Hydro.MapView/Common/MapDimensions.cs b/Hydraulic/Hydro.MapView/Common/MapDimensions.cs
index 7c0ec66..ae984bc 100644
--- a/Hydraulic/Hydro.MapView/Common/MapDimensions.cs
+++ b/Hydraulic/Hydro.MapView/Common/MapDimensions.cs
@@ -11,46 +11,86 @@
     [Serializable]
     public class MapDimensions
     {
-        [Category("4銆佽瑙�")]
+        
+
+        [Category("瑙嗚")]
         [DisplayName("涓績")]
         [Browsable(true)]
         public PointF Center { get; set; }
 
-        [Category("4銆佽瑙�")]
+        [Category("瑙嗚")]
         [DisplayName("缂╂斁")]
         [Browsable(true)]
         public float zoom { get; set; } = 0.1f;
 
-        [Category("4銆佽瑙�")]
+        [Category("瑙嗚")]
         [DisplayName("鏃嬭浆瑙掑害")]
         [Browsable(true)]
         public double rotation { get; set; } = 0;
 
-        [Category("4銆佽瑙�")]
+
+        private double _rotationF;
+        [Category("瑙嗚")]
         [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銆佽瑙�")]
+        [Category("瑙嗚")]
         [DisplayName("鏄剧ず妤煎眰")]
         [Browsable(true)]
         public int ShowFloor { get; set; } = int.MinValue;
 
-        [Category("4銆佽瑙�")]
+        [Category("瑙嗚")]
         [DisplayName("鏄剧ず鑳屾櫙")]
         [Browsable(true)]
         public bool isShowPic { get; set; } = true;
 
-        [Category("4銆佽瑙�")]
-        [DisplayName("鏈�涓嶅埄鐐�")]
+        [Category("瑙嗚")]
+        [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("瑙嗚")]
+        [DisplayName("閿佸畾骞抽潰瑙嗚")]
+        [Browsable(true)]
+        public bool Lock2DView { get; set; }=false;
+
+        /// <summary>
+        /// 缂栬緫妯″紡true,娴忚妯″紡false锛涢粯璁ゅ�硷細true锛涙祻瑙堟ā寮忎笅,涓嶈兘缂栬緫妯″瀷
+        /// </summary>
+        public bool isEditMode { get; set; } = true;
+
+
+        /// <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