internal bool Delete() { bool result = manager.Delete(this.RoutePointMediaObjectId); if (result) { _id = string.Empty; _routePointId = string.Empty; _filename = string.Empty; _filenamePreview = string.Empty; } return(result); }
internal void DeleteImage(string mediaId) { if (mediaManager.Delete(mediaId)) { string imagePath = ImagePathManager.GetImagePath(mediaId, MediaObjectTypeEnum.Image); string imagePreviewPath = ImagePathManager.GetImagePath(mediaId, MediaObjectTypeEnum.Image, true); try { File.Delete(imagePath); } catch (Exception) { } try { File.Delete(imagePreviewPath); } catch (Exception) { } refreshMediaObjects(); } }