首次提交:本地项目同步到Gitea
This commit is contained in:
23
LibShapes/Core/Command/CommandPropertyChanged.cs
Normal file
23
LibShapes/Core/Command/CommandPropertyChanged.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using Io.Github.Kerwinxu.LibShapes.Core.Shape;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Io.Github.Kerwinxu.LibShapes.Core.Command
|
||||
{
|
||||
public class CommandPropertyChanged : ShapeCommand
|
||||
{
|
||||
public override void Redo()
|
||||
{
|
||||
this.canvas.shapes.replaceShape(this.OldShape.ID, this.NewShape);
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void Undo()
|
||||
{
|
||||
this.canvas.shapes.replaceShape(this.OldShape.ID, this.OldShape);
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user