From dfe7e1653f8309e23e4c314cd58ac4ff7ce49dbc Mon Sep 17 00:00:00 2001 From: duheng <2286773002@qq.com> Date: 星期五, 28 三月 2025 14:50:47 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/MapObjectExtensions.cs | 10 +++++----- 1 files changed, 5 insertions(+), 5 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..bfe5990 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/MapObjectExtensions.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/MapObjectExtensions.cs @@ -1,13 +1,13 @@ -锘縰sing Hydro.Core; -using System; +锘縰sing System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using Yw.WinFrmUI.Q3d; -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