public override bool Undo() { // TODO: This doesn't seem neccesary if (base.Undo() == false) { return(false); } DeleteFromDrawingVisitor visitor = new DeleteFromDrawingVisitor(DrawingView.Drawing); foreach (IFigure figure in AffectedFigures) { figure.Visit(visitor); } DrawingView.ClearSelection(); return(true); }
public override bool Undo () { // TODO: This doesn't seem neccesary if (base.Undo () == false) return false; DeleteFromDrawingVisitor visitor = new DeleteFromDrawingVisitor (DrawingView.Drawing); foreach (IFigure figure in AffectedFigures) { figure.Visit (visitor); } DrawingView.ClearSelection (); return true; }