示例#1
0
 public void RefreshTag(string alltags_)
 {
     alltags = alltags_;
     tags.Clear();
     string[] tagSegment = alltags.Split(tagSep, StringSplitOptions.RemoveEmptyEntries);
     tags.AddRange(tagSegment.Select(s => StringTag.Ref(s)));
 }
示例#2
0
        public void ReplaceTag(string o, string n)
        {
            if (o == n)
            {
                return;
            }
            int t = tags.FindIndex(g => g.name == o);

            tags[t].Unref();
            tags[t] = StringTag.Ref(n);
            RenameFile(name);
        }