From a15bf1762569323ebf47dd094b0f79b33829e76f Mon Sep 17 00:00:00 2001 From: qin <a@163.com> Date: 星期二, 21 五月 2024 12:53:09 +0800 Subject: [PATCH] 优化template对象,public方法 --- Hydraulic/Hydro.MapView/Base/AreaViewModel.cs | 31 +++++++++++++++++++------------ 1 files changed, 19 insertions(+), 12 deletions(-) diff --git a/Hydraulic/Hydro.MapView/Base/AreaViewModel.cs b/Hydraulic/Hydro.MapView/Base/AreaViewModel.cs index 57a68bd..e0e49a0 100644 --- a/Hydraulic/Hydro.MapView/Base/AreaViewModel.cs +++ b/Hydraulic/Hydro.MapView/Base/AreaViewModel.cs @@ -17,23 +17,30 @@ { public List<PointF> Points { get; set; } - [Category("1銆佸熀鏈俊鎭�")] + [Category("鍩烘湰淇℃伅")] [Description("瀵硅薄鐨処D鍞竴鏍囪瘑")] - [DisplayName(" 缂栧彿 ")] + [DisplayName("缂栧彿")] public string ID { get; set; } public string Name { get; set; } - [Category("4銆佸叾浠栧弬鏁�")] + [Category("鍏朵粬鍙傛暟")] [Description("閫変腑")] [DisplayName("閫変腑")] [Browsable(false)] public bool Selected { get; set; } + [Category("鍏朵粬鍙傛暟")] + [Description("榧犳爣鎮簬涓婃柟")] + [DisplayName("榧犳爣鎮簬涓婃柟")] + [Browsable(false)] + public bool Hovered { get; set; } - [Category("4銆佸叾浠栧弬鏁�")] + + + [Category("鍏朵粬鍙傛暟")] [Description("閫変腑")] [DisplayName("浣嶇疆淇℃伅")] [Browsable(false)] @@ -46,7 +53,7 @@ [JsonIgnore] public String regionName { get; set; } = null; - [Category("1銆佸熀鏈俊鎭�")] + [Category("鍩烘湰淇℃伅")] [Description("X鍧愭爣")] [DisplayName("X鍧愭爣")] [Browsable(true)] @@ -61,7 +68,7 @@ Position = new PointF(value, Position.Y); } } - [Category("1銆佸熀鏈俊鎭�")] + [Category("鍩烘湰淇℃伅")] [Description("Y鍧愭爣")] [DisplayName("Y鍧愭爣")] [Browsable(true)] @@ -77,38 +84,38 @@ } } - [Category("1銆佸熀鏈俊鎭�")] + [Category("鍩烘湰淇℃伅")] [Description("鏍囬珮")] [DisplayName("鏍囬珮")] [Browsable(true)] public float Elev { get; set; } - [Category("4銆佸叾浠栧弬鏁�")] + [Category("鍏朵粬鍙傛暟")] [Description("瀵硅薄鐨勭瓑绾�")] [DisplayName("绾у埆")] public int Level { get; set; } = 0; - [Category("4銆佸叾浠栧弬鏁�")] + [Category("鍏朵粬鍙傛暟")] [Description("瀵硅薄鐨勭瓑绾�")] [DisplayName("鏄惁鏄剧ず")] public bool Visible { get; set; } = true; - [Category("1銆佸熀鏈俊鎭�")] + [Category("鍩烘湰淇℃伅")] [Description("绫诲瀷")] [DisplayName("绫诲瀷")] public MapObjectType Type { get { return this.GetTypeString(); } } - [Category("4銆佸叾浠栧弬鏁�")] + [Category("鍏朵粬鍙傛暟")] [Description("ID绫诲瀷")] [DisplayName("ID绫诲瀷")] [Browsable(false)] public string IDType => Type.ToString() + "\t" + ID; - [Category("4銆佸叾浠栧弬鏁�")] + [Category("鍏朵粬鍙傛暟")] [Description("鏍囩")] [DisplayName("鏍囩")] [Editor(typeof(MyEditor), typeof(UITypeEditor))] -- Gitblit v1.9.3