private void RemoveMapPolygons(IEnumerable <MapPolygon> polygons) { foreach (var oldPolygon in polygons) { DigiTransitMapControl.MapElements.Remove(oldPolygon); } MapElementsChanged?.Invoke(this, EventArgs.Empty); }
private void AddMapIcons(IEnumerable <MapIcon> icons) { foreach (var newIcon in icons) { DigiTransitMapControl.MapElements.Add(newIcon); } MapElementsChanged?.Invoke(this, EventArgs.Empty); }