cloudflight
2024-10-12 46e3091f9cdefc7e2ffbc69bcb9c39650b1c0587
WinFrmUI/Yw.WinFrmUI.Hydro.Q3d.Core/MapView/Common/MapObjectExtensions.cs
@@ -1,4 +1,4 @@
using Hydro.Core;
using 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);