Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 2
0
			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;
			}