Esempio n. 1
0
        internal void AddMediaItem(string mediaId, MediaObjectTypeEnum mediaType)
        {
            ViewRoutePointMediaObject media = new ViewRoutePointMediaObject();

            media.RoutePointMediaObjectId = mediaId;
            media.RoutePointId            = Id;
            media.Version   = 1;
            media.MediaType = mediaType;
            mediaManager.Save(media);
            load(Id);
        }
Esempio n. 2
0
        public bool SetDeleteMarkPointWithDeleteMedias()
        {
            bool result = false;

            _isDeleted = true;
            _version++;
            result = Save();
            if (result)
            {
                foreach (var mediaObject in MediaObjects)
                {
                    ViewRoutePointMediaObject media = new ViewRoutePointMediaObject();
                    media.Load(mediaObject.RoutePointMediaObjectId);
                    result = media.SetDeleteMarkWithDeleteImage();
                }
                refreshMediaObjects();
            }
            return(result);
        }