From e2f45c6bce38ee2ffca13510fdf67b00100814cd Mon Sep 17 00:00:00 2001 From: cloudflight <cloudflight@126.com> Date: 星期二, 04 六月 2024 00:18:28 +0800 Subject: [PATCH] [合并] --- Hydraulic/Hydro.MapView/Common/MapDimensions.cs | 35 ++++++++++++++++++++--------------- 1 files changed, 20 insertions(+), 15 deletions(-) diff --git a/Hydraulic/Hydro.MapView/Common/MapDimensions.cs b/Hydraulic/Hydro.MapView/Common/MapDimensions.cs index ae984bc..c856579 100644 --- a/Hydraulic/Hydro.MapView/Common/MapDimensions.cs +++ b/Hydraulic/Hydro.MapView/Common/MapDimensions.cs @@ -11,53 +11,58 @@ [Serializable] public class MapDimensions { - - [Category("瑙嗚")] + + [Category("4銆佽瑙�")] [DisplayName("涓績")] [Browsable(true)] public PointF Center { get; set; } - [Category("瑙嗚")] + [Category("4銆佽瑙�")] [DisplayName("缂╂斁")] [Browsable(true)] public float zoom { get; set; } = 0.1f; - [Category("瑙嗚")] + [Category("4銆佽瑙�")] [DisplayName("鏃嬭浆瑙掑害")] [Browsable(true)] public double rotation { get; set; } = 0; private double _rotationF; - [Category("瑙嗚")] + [Category("4銆佽瑙�")] [DisplayName("淇瑙掑害")] [Browsable(true)] - public double rotationF + public double rotationF { - get + get { if (Lock2DView) _rotationF = 90; return _rotationF; } - set - { + set + { _rotationF = value; if (Lock2DView) _rotationF = 90; - } + } } - [Category("瑙嗚")] + [Category("4銆佽瑙�")] [DisplayName("鏄剧ず妤煎眰")] [Browsable(true)] public int ShowFloor { get; set; } = int.MinValue; - [Category("瑙嗚")] + [Category("4銆佽瑙�")] [DisplayName("鏄剧ず鑳屾櫙")] [Browsable(true)] public bool isShowPic { get; set; } = true; - [Category("瑙嗚")] + + + public bool isAutoBackgroundImage = false; + + + [Category("4銆佽瑙�")] [DisplayName("鏄剧ず鏈�涓嶅埄鐐�")] [Browsable(true)] public bool isShowUnfavor { get; set; } = true; @@ -68,10 +73,10 @@ //[Browsable(false)] //public int LinkColourIndex { get; set; } = 0; - [Category("瑙嗚")] + [Category("4銆佽瑙�")] [DisplayName("閿佸畾骞抽潰瑙嗚")] [Browsable(true)] - public bool Lock2DView { get; set; }=false; + public bool Lock2DView { get; set; } = false; /// <summary> /// 缂栬緫妯″紡true,娴忚妯″紡false锛涢粯璁ゅ�硷細true锛涙祻瑙堟ā寮忎笅,涓嶈兘缂栬緫妯″瀷 -- Gitblit v1.9.3