Esempio n. 1
0
        public void RemoveImageKind(int id)
        {
            ImageKind ik = ImageKindRepository.GetById(id);

            ImageKindRepository.Delete(ik);
            SaveImageKind();
        }
Esempio n. 2
0
        public ImageKind GetImageKind(string kind)
        {
            ImageKind ik = ImageKindRepository.GetImageKindByKind(kind);

            if (ik != null)
            {
                return(ik);
            }
            return(null);
        }
Esempio n. 3
0
        public ImageKind GetImageKind(int id)
        {
            ImageKind ik = ImageKindRepository.GetById(id);

            if (ik != null)
            {
                return(ik);
            }
            return(null);
        }
Esempio n. 4
0
        public void EditImageKind(ImageKind ImageKind)
        {
            ImageKind ik = ImageKindRepository.GetById(ImageKind.Id);

            if (ik != null)
            {
                ik.Kind        = ImageKind.Kind;
                ik.Description = ImageKind.Description;
                SaveImageKind();
            }
        }
Esempio n. 5
0
        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());
        }
Esempio n. 6
0
 public QuickInfoItem(TextSpan span, ImageKind image, ImmutableArray <SymbolDescription> descriptions)
 {
     Span         = span;
     Descriptions = descriptions.IsDefault ? ImmutableArray <SymbolDescription> .Empty : descriptions;
     Image        = image;
 }
Esempio n. 7
0
 /// <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;
 }
Esempio n. 8
0
 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;
 }
 /// <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;
 }
Esempio n. 11
0
 public void CreateImageKind(ImageKind ImageKind)
 {
     ImageKindRepository.Add(ImageKind);
     SaveImageKind();
 }