IGlyphTextDotNetTokenMarker AddMarker(ModuleId module, uint token, ImageReference?glyphImage, string markerTypeName, string selectedMarkerTypeName, IClassificationType classificationType, int zIndex, object tag, IGlyphTextMarkerHandler handler, Func <ITextView, bool> textViewFilter) { var marker = new GlyphTextDotNetTokenMarker(module, token, glyphImage, markerTypeName, selectedMarkerTypeName, classificationType, zIndex, tag, handler, textViewFilter); glyphTextMarkers.Add(marker); MarkerAdded?.Invoke(this, new GlyphTextMarkerAddedEventArgs(marker)); return(marker); }
IGlyphTextMethodMarker AddMarker(ModuleId module, uint token, uint ilOffset, ImageReference?glyphImage, string?markerTypeName, string?selectedMarkerTypeName, IClassificationType?classificationType, int zIndex, object?tag, IGlyphTextMarkerHandler?handler, Func <ITextView, bool>?textViewFilter) { var marker = new GlyphTextMethodMarker(module, token, ilOffset, glyphImage, markerTypeName, selectedMarkerTypeName, classificationType, zIndex, tag, handler, textViewFilter); glyphTextMarkers.Add(marker); MarkerAdded?.Invoke(this, new GlyphTextMarkerAddedEventArgs(marker)); return(marker); }
public IGlyphTextMethodMarker AddMarker(ModuleTokenId tokenId, uint ilOffset, ImageReference?glyphImage, string markerTypeName, string selectedMarkerTypeName, IClassificationType classificationType, int zIndex, object tag, IGlyphTextMarkerHandler handler, Func <ITextView, bool> textViewFilter) { var marker = new GlyphTextMethodMarker(tokenId, ilOffset, glyphImage, markerTypeName, selectedMarkerTypeName, classificationType, zIndex, tag, handler, textViewFilter); glyphTextMarkers.Add(marker); MarkerAdded?.Invoke(this, new GlyphTextMarkerAddedEventArgs(marker)); return(marker); }
public void AddMarker(double lat, double lng, string title, string snippet) => MarkerAdded?.Invoke(this, new MapMarker { Latitude = lat, Longitude = lng, Title = title, Snippet = snippet });
public void AddMarker(MarkerAnnotation marker) { if (!Valid) { return; } Undo.RecordObject(m_Asset, $"Add {TagAttribute.GetDescription(marker.payload.Type)}"); markers.Add(marker); MarkerAdded?.Invoke(marker); NotifyChanged(); }
/** * マーカーを追加する。 * * @event MarkerAdded */ public void AddMarker(double value, object clientData) { Image img; var checker = clientData as IAddMarkerChecker; if (null != checker) { if (!checker.CanAddMarker(value)) { return; } } else if (mMarkers.TryGetValue(value, out img)) { return; } img = createMarkerIcon(value); mMarkerContainer.Children.Add(img); mMarkers[value] = img; MarkerAdded?.Invoke(value, clientData); }
/** * マーカー追加通知 */ private void MV_MarkerAdded(double value, object clientData) { MarkerAdded?.Invoke(this, value, clientData); }
private void OnMarkerAdded() { MarkerAdded?.Invoke(); }