public TagSearchResultViewModel(Tag tag)
 {
     this.Tag = tag;
 }
        private void OnOnAddingTag(object sender, TagSearchViewModel.AddingTagEventArgs e)
        {
            Tag tag;
            if (e.SearchResult is NewTagSearchResultViewModel)
            {
                tag = new Tag { Name = ((NewTagSearchResultViewModel)e.SearchResult).TagName };
            }
            else
            {
                tag = e.SearchResult.Tag;
            }

            this.item.Tags.Add(tag);
            this.tags.Add(new TagViewModel(tag));
        }
Beispiel #3
0
 public TagViewModel(Tag tag)
 {
     this.Tag = tag;
 }