Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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
 });
Пример #5
0
        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();
        }
Пример #6
0
        /**
         * マーカーを追加する。
         *
         * @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);
        }
Пример #7
0
 /**
  * マーカー追加通知
  */
 private void MV_MarkerAdded(double value, object clientData)
 {
     MarkerAdded?.Invoke(this, value, clientData);
 }
Пример #8
0
 private void OnMarkerAdded()
 {
     MarkerAdded?.Invoke();
 }