void OnBeforeShapeDelete(Shape shape) { Shadow shadow = LookupShadowByShape(shape); if (shadow != null) { shadow.OnBeforeShapeDelete(); } shadowShapeMap.Remove(shape.get_UniqueID((short)VisUniqueIDArgs.visGetOrMakeGUID)); }