Пример #1
0
        public static void RecordTag(string category, string tagText)
        {
            tagText  = FormatUtil.FixTag(tagText);
            category = FormatUtil.FixCategory(category);
            if (tagText == "" || tagText == null)
            {
                return;
            }
            else if (HasCategory(category))
            {
                TagsRecord[category].Add(tagText);
            }
            else
            {
                AddCategory(category);
                TagsRecord[category].Add(tagText);
            }

            Persist();
        }
Пример #2
0
 private void FormatTagsMenuItem_Click(object sender, RoutedEventArgs e)
 {
     FormatUtil.FixAllTagsInFiles(ImageFiles);
 }