/// <summary>
        /// Adds tag to the list.
        /// </summary>
        Tag SaveTag(Tag tag)
        {
            NewTagAddedArgs newTagAddedArgs = new NewTagAddedArgs(tag);

            OnNewTagAdded(newTagAddedArgs);
            Tags.Add(tag);
            return(new Tag());
        }
 /// <summary>
 /// Raising NewTagAdded event.
 /// </summary>
 public void OnNewTagAdded(NewTagAddedArgs newTagAddedArgs)
 {
     NewTagAdded?.Invoke(this, newTagAddedArgs);
 }
 /// <summary>
 /// Adds single tag to the list during operation.
 /// </summary>
 public void AddItemPreview(object o, NewTagAddedArgs newTagAddedArgs)
 {
     AddItem(newTagAddedArgs.tag);
 }