Files
barcodeManager/LibShapes/Core/Command/CommandShapesChanged.cs

47 lines
1012 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/**
*
*
* **/
namespace Io.Github.Kerwinxu.LibShapes.Core.Command
{
/// <summary>
/// Shapes的更改
/// </summary>
public class CommandShapesChanged:ICommand
{
/// <summary>
/// 原先的
/// </summary>
public Shapes OldShapes { get; set; }
/// <summary>
/// 新的
/// </summary>
public Shapes NewShapes { get; set; }
/// <summary>
/// 画布
/// </summary>
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();
}
}
}