Пример #1
0
 public bool TagExist(TagItemVM tagItem)
 {
     return(Tags.Any((tag) =>
     {
         return tag.Name == tagItem.Name;
     }));
 }
 public void RemoveTag(TagItemVM tagItemVM)
 {
     Tags.Remove(tagItemVM);
     NotifyPropertyChanged("Tags");
     NotifyPropertyChanged("HasTags");
 }
 public void AddTag(TagItemVM tagItemVM)
 {
     Tags.Add(tagItemVM);
     NotifyPropertyChanged("Tags");
     NotifyPropertyChanged("HasTags");
 }