public void ClearEditLayers() { foreach (var layer in this.displayControlEdit.Layers) { layer.Dispose(); } }