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(); }
private void FormatTagsMenuItem_Click(object sender, RoutedEventArgs e) { FormatUtil.FixAllTagsInFiles(ImageFiles); }