public void AddTagName(string tagName) { if (TagNames is null) { TagNames = new List <string>(); } if (TagNames.Contains(tagName) == false) { TagNames.Add(tagName); } }
private bool CanExecuteNewTagCommand() { return(!string.IsNullOrWhiteSpace(NewTagName) && !TagNames.Contains(NewTagName)); }