From c2fa168aff53d879f72412c94baa7be4998dae5e Mon Sep 17 00:00:00 2001 From: qinjie <qinjie@163.com> Date: 星期六, 02 十二月 2023 12:56:28 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/Yw/Hydro.V1.0 --- Hydro.MapView/Common/MapDimensions.cs | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Hydro.MapView/Common/MapView.cs b/Hydro.MapView/Common/MapDimensions.cs similarity index 79% rename from Hydro.MapView/Common/MapView.cs rename to Hydro.MapView/Common/MapDimensions.cs index 5506878..e9c9e20 100644 --- a/Hydro.MapView/Common/MapView.cs +++ b/Hydro.MapView/Common/MapDimensions.cs @@ -8,7 +8,8 @@ namespace Hydro.MapView { - public class MapView + [Serializable] + public class MapDimensions { [Category("4銆佽瑙�")] [DisplayName("涓績")] @@ -18,17 +19,17 @@ [Category("4銆佽瑙�")] [DisplayName("缂╂斁")] [Browsable(true)] - public float zoom { get; set; } + public float zoom { get; set; } = 0.1f; [Category("4銆佽瑙�")] [DisplayName("鏃嬭浆瑙掑害")] [Browsable(true)] - public double rotation { get; set; } + public double rotation { get; set; } = 0; [Category("4銆佽瑙�")] [DisplayName("淇瑙掑害")] [Browsable(true)] - public double rotationF { get; set; } + public double rotationF { get; set; } = 90; [Category("4銆佽瑙�")] [DisplayName("鏄剧ず妤煎眰")] @@ -40,9 +41,9 @@ [Browsable(true)] public bool isShowPic { get; set; } = true; - public MapView Copy() + public MapDimensions Copy() { - MapView mv = new MapView(); + MapDimensions mv = new MapDimensions(); mv.Center = Center; mv.zoom = zoom; mv.rotation = rotation; -- Gitblit v1.9.3