public TagSearchResultViewModel(Tag tag)
 {
     this.Tag = tag;
 }
示例#2
0
        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));
        }
示例#3
0
 public TagViewModel(Tag tag)
 {
     this.Tag = tag;
 }