コード例 #1
0
 public void AddToAll(ImageTag tag)
 {
     if (!tag.IsEmpty() && !selectedImageTags.Contains(tag))
     {
         selectedImageTags.Add(tag);
         foreach (var selected in main.imageGrid.SelectedItems.Cast <ImageInfo>())
         {
             var current = ImageFileUtil.GetImageTags(selected.ImgPath);
             current.Add(tag);
             ImageFileUtil.ApplyTagsToImage(selected, current);
         }
     }
 }