Example #1
0
 private void UpdateNewTag()
 {
     if (AssignedCategory != null && TagName != null)
     {
         NewTag = AssignedCategory.Tags.SingleOrDefault(
             t => t.TagName.Equals(TagName.Trim(),
                                   StringComparison.InvariantCultureIgnoreCase));
     }
     OnPropertyChanged("CreateMessage");
 }
Example #2
0
 public HtmlTag(string fullTag, string redundantSpace, string tagName, string attribute, int position)
 {
     FullTag          = fullTag;
     TagName          = tagName.ToLower();
     Attribute        = attribute;
     Position         = position;
     IsRedundantSpace = redundantSpace.Length > 0;
     IsEndTag         = tagName.StartsWith("/");
     IsSelfClose      = IsSelfCloseTag(TagName, attribute);
     IsNotAllow       = NotAllowTags.Contains(TagName.Trim('/'));
 }
Example #3
0
 private void CreateTag()
 {
     NewTag = new Tag(TagName.Trim(), AssignedCategory);
     App.SongDb.AddTag(NewTag);
 }