public override bool Redo() { // do not call execute directly as the selection might has changed if (Redoable == false) { return(false); } _command.DeleteFigures(AffectedFigures.ToFigures()); DrawingView.ClearSelection(); return(true); }
public override bool Undo() { if (base.Undo() == false) { return(false); } DrawingView.ClearSelection(); DrawingView.AddToSelection(AffectedFigures.ToFigures()); return(true); }