private void mapBox_MapQueryDone(object sender, EventArgs e) { mapBox.Map.Layers.Clear(); mapBox.Map.Layers.AddCollection(filterCollection); filterCollection.Clear(); }
/// <summary> /// Clears all graphics from the DICOM graphics plane. /// </summary> public void Clear() { _shutter.Clear(); _layers.Clear(); _imageOverlays.Clear(); _presentationOverlays.Clear(); _userOverlays.Clear(); }
/// <summary> /// Disposes the map object and all layers. /// </summary> protected virtual void Dispose(Boolean disposing) { if (disposing) { _layers.ListChanged -= handleLayersChanged; foreach (ILayer layer in Layers) { if (layer != null) { layer.Dispose(); } } _layers.Clear(); unwireTools(Tools); } }