From c7621b10414bcba9031acb29f0de3af9a1a7a751 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期三, 12 三月 2025 08:44:30 +0800 Subject: [PATCH] 监测分析bug修复 --- WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/LinkViewModel.cs | 46 ++++++++++++++++++++++++---------------------- 1 files changed, 24 insertions(+), 22 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/LinkViewModel.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/LinkViewModel.cs index 2f4268d..4d9957f 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/LinkViewModel.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Base/LinkViewModel.cs @@ -1,26 +1,26 @@ -锘縰sing Yw.WinFrmUI.Q3D; +锘縰sing Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; +using System.Drawing.Design; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; -using static Yw.WinFrmUI.Q3D.MapViewEnum; using System.Xml.Linq; -using Newtonsoft.Json; -using static Yw.WinFrmUI.Q3D.ObjectEnum; -using System.Drawing.Design; +using Yw.WinFrmUI.Q3d; +using static Yw.WinFrmUI.Q3d.MapViewEnum; +using static Yw.WinFrmUI.Q3d.ObjectEnum; -namespace Yw.WinFrmUI.Q3D +namespace Yw.WinFrmUI.Q3d { [Serializable] public class LinkViewModel : Q3DLinkCalcModel, IBaseViewModel { #region 鏋勯�犲嚱鏁� - + public LinkViewModel() { @@ -38,9 +38,10 @@ //Points = points; } #endregion + #region 灞炴�� - + [Category("鍩烘湰淇℃伅")] [DisplayName("缂栧彿")] [Browsable(true)] @@ -54,7 +55,7 @@ [Category("鍩烘湰淇℃伅")] [DisplayName("璧峰鑺傜偣")] [Browsable(true)] - public string Node1 + public string Node1 { get { @@ -82,7 +83,7 @@ base.Node2 = value; } } - + [Browsable(false)] [JsonIgnore] @@ -93,7 +94,7 @@ public NodeViewModel EndNode { get { return (NodeViewModel)base.EndNode; } set { base.EndNode = value; } } private PointF _position { get; set; } = new PointF(0, 0); - public PointF Position + public PointF Position { get { @@ -107,10 +108,10 @@ } return _position; } - set - { + set + { } - + } @@ -129,7 +130,7 @@ [Category("鍩烘湰淇℃伅")] [DisplayName("鏍囬珮(m)")] [Browsable(false)] - public float Z + public float Z { get { @@ -181,7 +182,7 @@ get { return base.Length; - + } set { @@ -203,7 +204,7 @@ [Description("X鍧愭爣")] [DisplayName("X鍧愭爣")] [Browsable(true)] - public float X + public float X { get { @@ -248,7 +249,7 @@ //[Editor(typeof(MyEditor), typeof(UITypeEditor))] //public TagList Tags { get; set; } = null; - + [Category("鍩烘湰淇℃伅")] @@ -262,9 +263,10 @@ [DisplayName("ID绫诲瀷")] [Browsable(false)] #endregion + #region 鏂规硶 - + public string IDType => Type.ToString() + "\t" + ID; public MapObjectType GetTypeString() @@ -274,14 +276,14 @@ if (this is TankViewModel) return MapObjectType.姘存睜; if (this is MeterViewModel) return MapObjectType.姘磋〃; if (this is NozzleViewModel) return MapObjectType.鍠峰ご; - + if (this is PipeViewModel) return MapObjectType.绠$嚎; if (this is ValveViewModel) return MapObjectType.闃�闂�; - + if (this is PumpViewModel) return MapObjectType.姘存车; - + return MapObjectType.鑺傜偣; } -- Gitblit v1.9.3