public void Undo() { Canvas.Children.Remove(mShape); ShapeFactory.Shapes.Remove(mShape); SelectionManager.UnselectAll(); }