using System; using System.Collections.Generic; using System.Linq; using System.Text; /** * 我这里做一个省事,所有的更改都改成这种更改,而不是单独的区分了。 * * **/ namespace Io.Github.Kerwinxu.LibShapes.Core.Command { /// /// Shapes的更改 /// public class CommandShapesChanged:ICommand { /// /// 原先的 /// public Shapes OldShapes { get; set; } /// /// 新的 /// public Shapes NewShapes { get; set; } /// /// 画布 /// public UserControlCanvas canvas { get; set; } public void Redo() { this.canvas.shapes = NewShapes; //throw new NotImplementedException(); } public void Undo() { this.canvas.shapes = OldShapes; //throw new NotImplementedException(); } } }