// 退回上一步 public void UnExecute() { foreach (IShape shape in _shapes) { _model.AddShape(shape); } }
//UnExecute public void ReverseExecute() { foreach (Shape shape in _shapes) { _model.AddShape(shape); } }
// 刪除所有 shapes public void BackExecute() { int length = _shapes.Count; for (int count = 0; count < length; count++) { _model.AddShape(_shapes[count]); } }
// 加入 shape public void Execute() { _model.AddShape(_shape); }