duheng
2025-03-28 dfe7e1653f8309e23e4c314cd58ac4ff7ce49dbc
WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/MapObjectExtensions.cs
@@ -1,13 +1,13 @@
using Yw.WinFrmUI.Q3D;
using System;
using 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 Yw.WinFrmUI.Q3D
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);