private string GetBadTagsMessage() { StringBuilder builder = new StringBuilder(); var badTags = _tager.GetIncorectTags(_mask); builder.AppendLine("Tags change in " + _tager.CurrentFile.Name + ":"); var tagsFromName = _tager.GetTagsFromName(_mask); foreach (var badTag in (from tag in badTags where _mask.Contains(tag.ToString().ToLower()) select tag)) { builder.AppendLine("\t" + badTag + " is empty." + "New value is " + "\"" + tagsFromName.GetTag(badTag.ToString()) + "\""); } return(builder.ToString()); }
public override bool Call(Mask mask, Tager tager, IMp3File file) { if (_isCanceled) { RestoreFile(); return(true); } _file = file; try { _memento = _file.GetMemento(); tager.ChangeTags(tager.GetTagsFromName(mask)); return(true); } catch { return(false); } }
public override bool Call(Mask mask, Tager tager, IMp3File file) { if (_isCanceled) { RestoreFile(); return true; } _file = file; try { _memento = _file.GetMemento(); tager.ChangeTags(tager.GetTagsFromName(mask)); return true; } catch { return false; } }