public void RemoveImageKind(int id) { ImageKind ik = ImageKindRepository.GetById(id); ImageKindRepository.Delete(ik); SaveImageKind(); }
public ImageKind GetImageKind(string kind) { ImageKind ik = ImageKindRepository.GetImageKindByKind(kind); if (ik != null) { return(ik); } return(null); }
public ImageKind GetImageKind(int id) { ImageKind ik = ImageKindRepository.GetById(id); if (ik != null) { return(ik); } return(null); }
public void EditImageKind(ImageKind ImageKind) { ImageKind ik = ImageKindRepository.GetById(ImageKind.Id); if (ik != null) { ik.Kind = ImageKind.Kind; ik.Description = ImageKind.Description; SaveImageKind(); } }
public IHttpActionResult Create(ImageKindViewModel imageKind) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } ImageKind ik = new ImageKind(); ik.Description = imageKind.Description; ik.Kind = imageKind.Kind; _ImageKindService.CreateImageKind(ik); return(Ok()); }
public QuickInfoItem(TextSpan span, ImageKind image, ImmutableArray <SymbolDescription> descriptions) { Span = span; Descriptions = descriptions.IsDefault ? ImmutableArray <SymbolDescription> .Empty : descriptions; Image = image; }
/// <summary> /// Initializes a new instance of the <see cref="ImageFilterAttribute"/> class. /// </summary> /// <param name="kind">The image kind.</param> public ImageFilterAttribute(ImageKind kind) { this.kind = kind; }
public ImageEntry(string fileName, string fullPath, ImageKind kind) { FileName = fileName; FullPath = fullPath; Kind = kind; }
public SymbolDescriptionInfo( IReadOnlyDictionary <SymbolDescriptionKind, ImmutableArray <TaggedText> > descriptions, ImageKind image) { Image = image; Descriptions = descriptions; }
public void CreateImageKind(ImageKind ImageKind) { ImageKindRepository.Add(ImageKind); SaveImageKind(); }