private void UpdateNewTag() { if (AssignedCategory != null && TagName != null) { NewTag = AssignedCategory.Tags.SingleOrDefault( t => t.TagName.Equals(TagName.Trim(), StringComparison.InvariantCultureIgnoreCase)); } OnPropertyChanged("CreateMessage"); }
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('/')); }
private void CreateTag() { NewTag = new Tag(TagName.Trim(), AssignedCategory); App.SongDb.AddTag(NewTag); }