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