public void DeleteShape(Shape targetShape, int shapeIndex) //刪除圖形命令 { NewCommandExcute(); _model.DeleteShape(shapeIndex); _model.DisPoseFocusShape(); _commands.Add(new DeleteShapeCommand(_model, targetShape, shapeIndex)); }
public override void Undo() //復原 { _model.DeleteShape(_shapeIndex); _model.DisPoseFocusShape(); }