From 46e3091f9cdefc7e2ffbc69bcb9c39650b1c0587 Mon Sep 17 00:00:00 2001 From: cloudflight <cloudflight@126.com> Date: 星期六, 12 十月 2024 03:19:57 +0800 Subject: [PATCH] 1、修改用户输入的喷头流量系数为K系数,自动转换为EPA中的射流系数 --- WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/MapObjectExtensions.cs | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/MapObjectExtensions.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/MapObjectExtensions.cs index aa23090..8f4da22 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/MapObjectExtensions.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/MapObjectExtensions.cs @@ -1,4 +1,4 @@ -锘縰sing Hydro.Core; +锘縰sing Yw.WinFrmUI.Q3d; using System; using System.Collections.Generic; using System.ComponentModel; @@ -7,7 +7,7 @@ using System.Threading.Tasks; using System.Windows.Forms; -namespace Hydro.MapView.Common +namespace Yw.WinFrmUI.Q3d { public class UndoRedoCommand<T> { @@ -83,7 +83,7 @@ case "Add": { - var net = o as MapViewNetWork; + var net = o as NetworkViewModel; var undoAction = new Action<object>(v => net.Remove(newValue)); var redoAction = new Action<object>(v => net.Add(newValue)); //object oldValue=propertyDescriptor.GetValue(obj); @@ -93,7 +93,7 @@ return; case "Remove": { - var net = o as MapViewNetWork; + var net = o as NetworkViewModel; var undoAction = new Action<object>(v => net.Add(newValue)); var redoAction = new Action<object>(v => net.Remove(newValue)); //object oldValue=propertyDescriptor.GetValue(obj); -- Gitblit v1.9.3