public static TagModel CreateClone(TagModel other) { TagModel tagModel = DocNode.Create <TagModel>(); tagModel.Init(other.FileNameFull, other.ToTag(), other.Bitrate.Value); return(tagModel); }
public void Add(string fileName, Tag tag, int bitrate) { if (Contains(fileName)) { throw new Exception("Can't add twice!"); } TagModel model = DocNode.Create <TagModel>(); model.Init(fileName, tag, bitrate); model.IsSelected.TransactionIdModeToUse = DocObj <bool> .TransactionIdMode.UseFixed; model.IsSelected.FixedTransactionId = GetHashCode(); Items.Add(model); }