internal void DestroyLayer(LayerBase layer) { layer.DetachFromPanel(this.panel); layer.Owner = null; }