/** * マーカーを削除 */ private void removeMarker(Image img, object clientData) { destroyMarkerIcon(img); mMarkerContainer.Children.Remove(img); mMarkers.Remove((double)img.Tag); MarkerRemoved?.Invoke((double)img.Tag, clientData); }
public void Remove(IGlyphTextMarker marker) { if (marker is null) { throw new ArgumentNullException(nameof(marker)); } var markerImpl = (IGlyphTextMarkerImpl)marker; glyphTextMarkers.Remove(markerImpl); MarkerRemoved?.Invoke(this, new GlyphTextMarkerRemovedEventArgs(markerImpl)); }
public void RemoveMarker(MarkerAnnotation marker) { int index = markers.IndexOf(marker); if (index >= 0) { Undo.RecordObject(m_Asset, $"Remove {MarkerAttribute.GetDescription(marker.GetType())}"); MarkerRemoved?.Invoke(marker); marker.Dispose(); markers.RemoveAt(index); NotifyChanged(); } }
/** * マーカー削除通知 */ private void MV_MarkerRemoved(double value, object clientData) { MarkerRemoved?.Invoke(this, value, clientData); }