コード例 #1
0
        /// <summary>
        /// End Edit.
        /// </summary>
        public void EditEnded()
        {
            Debug.Assert(IsInEditedMode);

            if (EditedObject is Route || EditedObject is Stop)
            {
                EditedObject = null;
                return;
            }

            SetOpacityToLayers(FULL_OPACITY);

            if (_clustering != null)
            {
                _clustering.ClusteringLayer.Selectable = true;
            }

            // Find graphic, which represents edited item.
            Graphic graphic = MapHelpers.GetGraphicByDataItem(EditedObject, _objectLayers);

            EditedObject = null;

            _tools.EndEdit(graphic);

            // Show graphic which represents edited item.
            ((DataGraphicObject)graphic).IsVisible = true;
        }