/// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="editingMarker">Editing marker to show.</param>
        private EditMarkerGraphicObject(EditingMarker editingMarker)
            : base(editingMarker)
        {
            _editingMarker = editingMarker;
            _SubscribeOnChange();

            Geometry = _CreatePoint(_editingMarker.EditingObject);
        }
        /// <summary>
        /// Create graphic object for editing marker.
        /// </summary>
        /// <param name="editingMarker">Source editing marker.</param>
        /// <returns>Graphic object for editing marker.</returns>
        public static EditMarkerGraphicObject Create(EditingMarker editingMarker)
        {
            EditMarkerGraphicObject graphic = null;

            Symbol editMarkerSymbol;
            if (editingMarker.MultipleIndex > -1)
                editMarkerSymbol = new EditingMarkerSymbol();
            else
                editMarkerSymbol = new PencilSymbol();

            graphic = new EditMarkerGraphicObject(editingMarker)
            {
                Symbol = editMarkerSymbol
            };

            graphic.SetZIndex(ObjectLayer.FRONTZINDEX);

            return graphic;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Add marker.
        /// </summary>
        /// <param name="multipleIndex">Marker index.</param>
        /// <param name="editingObject">Editing object.</param>
        private void _AddMarker(int multipleIndex, object editingObject)
        {
            EditingMarker editingMarker = new EditingMarker(multipleIndex, editingObject);

            _editMarkers.Add(editingMarker);
        }